Passer la navigation

[Résolu] Passing Set default value from an URL parameter

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I want to pass the custom fields “Part Number” and “Manufacturer Brand” from a product page to a CRED form on a separate page via URL parameters so they auto-fill in the form, but the values are not being passed correctly.

Solution:

Follow the steps in the documentation to pre-fill content in a Toolset form using URL parameters.

Relevant Documentation:

https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/#creating-forms-when-a-parent-post-is-preselected

This support ticket is created Il y a 9 months, 1 week. 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.

Ce sujet contient 1 reply, a 1 voix.

Dernière mise à jour par Christopher Amirian Il y a 9 months, 1 week.

Assisté par: Christopher Amirian.

Auteur
Publications
#2822034

Tell us what you are trying to do?
I am trying to pass custom field information from a product page to a CRED form on a separate page using URL parameters. Specifically, I want the Part Number and Manufacturer Brand of a product to be passed through the URL when the user clicks the "Inquire Now" button.

Here’s the scenario:

The user is on a product page, e.g., lien caché

They click the "Inquire Now" button, which should lead them to the form page lien caché

I want the Part Number and Manufacturer Brand custom field values from the product page to be passed as URL parameters to the form, so they are automatically filled in the form fields.

I’ve tried different methods to set this up, but the values are not being passed correctly to the form’s default value from URL parameters field. I would appreciate guidance on how to properly pass these custom field values via the URL and have them prefill the form fields.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
lien caché

#2822038

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi,

Welcome to Toolset support. Please follow the steps mentioned in the documentation below to be able to pre-fill the content from the URL parameter:

https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/#creating-forms-when-a-parent-post-is-preselected

Thanks.