Skip Navigation

[Resolved] Pass field value to en edit form's populated dropdown

This support ticket is created 3 years, 10 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Puntorosso 3 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1940225

I have a form that create an "inquiry" CPT.
This form contains a Generic Select field, which is populated with all posts of a CPT "property" (using php).

When the form is submitted, the selected "property" value is stored in a custom field of the created "inquiry" post.

When editing the form, how do I pass this value back to the Generic Select field?
Please notice that the php snippet populate the Generic Select field also in the editing form.

There's a "selected" parameter for a select field?

#1940347

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can I have problem URL where you added your edit form as well as temporary admin access details so that I can review how exactly you setup your generic field using php.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1941731

My issue is resolved now. Thank you!