Skip Navigation

[Resolved] Passing Set default value from an URL parameter

This thread is resolved. Here is a description of the problem and solution.

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 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.

This topic contains 1 reply, has 1 voice.

Last updated by Christopher Amirian 2 weeks, 6 days ago.

Assisted by: Christopher Amirian.

Author
Posts
#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., hidden link

They click the "Inquire Now" button, which should lead them to the form page hidden link

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?
hidden link

#2822038

Christopher Amirian
Supporter

Languages: English (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.