Skip Navigation

[Resolved] How to insert parent and child relationship in CRED form?

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Author
Posts
#1108464
Untitled-1.jpg
Screenshot_2.png
Screenshot_1.png

Hello i need real estate site. I have post types appartment, house, office for sell. And i have 9 region and many subregion in each of the regions (relationship one region to many subregion). Each property is located in some subregion.
I create auto-generated fields in cred form and i have only field with subregion.
How i can made for user choose region, after choice region Select the subregions that are appropriate for the region selected above where my property will be sold?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? hidden link

#1108530

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

Unfortunately this is not possible. If the user is only creating a property and selecting a sub region that was already predefined then they are not able to select a region for that sub region.

The sub region can only be assigned to a region from it's respective form.

Thanks,
Shane

#1108536

thanks for answer but i don't see a logic for example state and city - 50 state and more than 30 000 cities and To add a city I will have to make a sample of 30,000 cities in all 50 states.
In my case, I have 9 regions and 141 subregions, and I need to add when I add an apartment to find out from 141 subregions necessary. It is easier to choose 1 region and take 15 of the 15 sabregions. This is more convenient, do not you think?
May be have another way for the resolved this problem?
And whether it is possible to make a dropdown choice not by search.
Thanks for help

#1108540

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

The only way this would be possible is through the use of custom code.

There isn't any logic that would allow for a limited choice based on the region that you have selected.

Possibly in the future when improvements are made on the post relationships but for now this is not possible.

Thanks,
Shane

#1108552

what custom code do you mean?
May be other forum moderator can help or to show the way to solve my problem? Can you ask?
It's really important for me, please understand my subregion - it's a street, in some case one street may have several regions two or three and in your case it impossible.

#1109630

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,,

I meant that you will need to create a complete custom solution for this in order for you to get your desired results.

Thanks,
Shane