Navigation überspringen

[Gelöst] Passing Set default value from an URL parameter

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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

Dieses Thema enthält 1 reply, hat 1 Stimme.

Zuletzt aktualisiert von Christopher Amirian vor 9 months, 1 week.

Assistiert von: Christopher Amirian.

Author
Artikel
#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., versteckter Link

They click the "Inquire Now" button, which should lead them to the form page versteckter 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?
versteckter Link

#2822038

Christopher Amirian
Unterstützer

Sprachen: Englisch (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.