Button Link
-
Hi there,
The button function in the form, will it be able to be linked to a url, for example if i click the button it will be linked to a specific URL
The page I need help with: [log in to see the link]
-
Hello @namazee,
It is simple javascript, entering as the onclick event of the button, a piece of code similar to the following one:
document.location.href="http://www.the-website-domain.com/the-path-to-webpage";Best regards.
Hi,
I mean for example, if i create a dropdown list with two items, say item a and item b, if user selected item a and click button, it will leads to link A, if user selected item b in dropdown and click button, it will lead to link B.. will it be possible with implementation of IF statement
Hello @namazee,
You can simply insert a calculated field with the equation:
(function(){ if(fiedname1=='a') global_url = 'http://www.your-website-domain.com/page-a'; if(fiedname1=='b') global_url = 'http://www.your-website-domain.com/page-b'; })()and then, the onclick event associated to the button would be:
if(global_url) document.location.href=global_url;and that’s all.
It is only an alternative, there are many other possibilities.
Best regards.
Hi,
to pass the information selected from form A to form B.
For example in form A, user has selected Pickup country, pick up city, delivery country, delivery city, when the button is clicked to route them to the url together with the info they have selected in form A will be captured in form B.
Hello @namazee,
In this case you will need at least the Professional version of the plugin.
I’ll try to describe the process with a hypothetical example.
Assuming the form A includes the fields: fieldname1 and fieldname2, and you want pre-fill the fields: fieldname4 and fieldame9 in the form B with the values of fields in the form A:
– First, enter as the thank you page in the settings of the form A, the URL to the webpage where is inserted the form B.
– Second, into the content of the page where insert the shortcode of the form B, insert the shortcode for results to create the variable that define the default values of the fields in the form B:
[CP_CALCULATED_FIELDS_RESULT] <SCRIPT> cpcff_default = { 1 : {} }; cpcff_default[1][ 'fieldname4' ] = '<%fieldname1_value%>'; cpcff_default[1][ 'fieldname9' ] = '<%fieldname2_value%>'; </SCRIPT> [/CP_CALCULATED_FIELDS_RESULT]and that’s all.
More information in the following links:https://cff.dwbooster.com/documentation#populate-form
https://cff.dwbooster.com/documentation#populate-form-b-with-aBest regards.
(function(){
if(fieldname1==’Air Express’) global_url = ‘http://factohub.com/air-express/’;
if(fiedname1==’Sea Express’) global_url = ‘http://factohub.com/sea-express/’;
if(fieldname1==’Less Container Load (LCL)’) global_url = ‘http://factohub.com/less-container-load-lcl/’;
if(fieldname1==’Full Container Load (FCL)’) global_url = ‘http://factohub.com/full-container-load-fcl/’;
})()ive used this code but only Air Express option is working, if others are selected, its not linking to the relevant page.
Hello @namazee,
Provide the URL to the webpage where is inserted the form you are editing, because the URL you sent me in the first ticket is not using this code:
https://factohub.namaxee.com/air-express/
Best regards.
hi,
Hello @namazee,
There is a typo in your equation: fiedname1 instead fieldname1
I’m sorry, but the free support service does not cover debugging your project. If you need a specialized support service, please, visit the following link:
https://cff.dwbooster.com/support-policy
Best regards.
The topic ‘Button Link’ is closed to new replies.