Saltar navegación

[Resuelto] Passing Set default value from an URL parameter

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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.

Este tema contiene 1 respuesta, tiene 1 mensaje.

Última actualización por Christopher Amirian 9 months, 1 week ago.

Asistido por: Christopher Amirian.

Autor
Mensajes
#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., enlace oculto

They click the "Inquire Now" button, which should lead them to the form page enlace oculto

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?
enlace oculto

#2822038

Christopher Amirian
Colaborador

Idiomas: Inglés (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.