Skip Navigation

[Resolved] Passing Search/Selected Values to CRED Form

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

Problem:
Passing Search/Selected Values to CRED Form

Solution:
CRED shortcode [cred_field ] supports the urlparam attribute.

So - for instance, if you are passing the URL param as "myname", you should assign the field's urlparam value to myname.

For example:

[cred_field field='field' post='student' value='' urlparam='myname']

You can find proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/passing-search-selected-values-to-cred-form/#post-628174

Relevant Documentation:

This support ticket is created 6 years, 8 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 1 reply, has 2 voices.

Last updated by Minesh 6 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#627999
BookingForm.jpg
RoomType.jpg

Hi
I have a Post Types
Hotels
Hotels -> Rooms
Bookings is a child of both Hotels & Rooms

Hotels has custom field -> Country
Rooms has custom Field -> Room Type

I am searching Rooms using Room Type and Displaying
Room Title - Hotel->Belongsto - Country->Belongsto and BOOKNOW-->Hyperlink-toCREDForm

When someone clicks on BOOKNow link - I am displaying CRED Form - There I would like to pass selected room title, hotel & Country
From the CRED Form I am created a booking.

#628174

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - CRED shortcode [cred_field ] supports the urlparam attribute.

So - for instance, if you are passing the URL param as "myname", you should assign the field's urlparam value to myname.

For example:

[cred_field field='field' post='student' value='' urlparam='myname']

Regarding - how you construct the URL params, you need to customize your CRED form's link in such a way that you able to pass the URL params and it's associated values.