Skip Navigation

[Resolved] Radio default from url

This support ticket is created 2 years, 4 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.

This topic contains 1 reply, has 1 voice.

Last updated by TomW5440 2 years, 4 months ago.

Author
Posts
#2455447
tool-register.jpg
tool-cf.png

Tell us what you are trying to do?

I have a sign up form that includes a CF radio named package. This radio has 4 options and each corresponds to a product. At the moment the user needs to select one of these options but I want to set the default value to be based on the url parameter.

On the previous page the user selects which package they want but currently all these links just go to the same sign up page. I can easily add custom url for each package so I'm wondering if radio on the sign up form can listen for url and depending on it's value set a default radio value?

myurl.com/signuppage?1
myurl.com/signuppage?2
myurl.com/signuppage?3
myurl.com/signuppage?4

Here's the form radio -
[cred_field field='package' force_type='field' class='form-control' output='bootstrap']

If the radio can have default value from url parameter I can hide it from the form.

Thank you.

#2455587

My issue is resolved now. Thank you!