cookie dat into hidden field
-
I need help developing a webform that takes the cookie data and adds it to the hidden field of a web form I am trying to get it set up before I buy the pro version, I just don’t know enough about website creation of javascript or html or web form making
I have a plugin that created a web form- I can create a hidden field I got a bunch of code I can add to add it to a web page
I have no idea what javascript to add or where to add it to pull the affiliate number into the form.
I need help developing a webform that takes the cookie data and adds it to the hidden field of a web form I am trying to get it set up before I buy the pro version, I just don’t know enough about website creation of javascript or html or web form making
I have a plugin that created a web form- I can create a hidden field I got a bunch of code I can add to add it to a web page
I have no idea what javascript to add or where to add it to pull the affiliate number into the form.
here is the form html<script type="text/javascript"> function validateBFTProUser(frm, requireName) { requireName = requireName || false; if(requireName && frm.bftpro_name.value=="") { alert("Please provide name"); frm.bftpro_name.focus(); return false; } if(frm.email.value=="" || frm.email.value.indexOf("@")<1 || frm.email.value.indexOf(".")<1) { alert("Please provide a valid email address"); frm.email.focus(); return false; } // check custom fields var req_cnt = frm.elements["required_fields[]"].length; // there's always at least 1 if(req_cnt > 1) { for(i = 0; i<req_cnt; i++) { var fieldName = frm.elements["required_fields[]"][i].value; if(fieldName !='') { var isFilled = false; // ignore radios if(frm.elements[fieldName].type == 'radio') continue; // checkbox if(frm.elements[fieldName].type == 'checkbox' && !frm.elements[fieldName].checked) { alert("This field is required"); frm.elements[fieldName].focus(); return false; } // all other fields if(frm.elements[fieldName].value=="") { alert("This field is required"); frm.elements[fieldName].focus(); return false; } } } } return true; } </script> <form method="post" enctype="multipart/form-data" class="bftpro-front-form bftpro-vertical bftpro-inline-label" onsubmit="return validateBFTProUser(this,false);" action="https://www.kidsmagicworld.com.au/" style=""> <fieldset> <div class="bftpro-form-group "><label>Name:</label> <input type="text" name="bftpro_name" value=""> </div> <div class="bftpro-form-group "><label>*Email:</label> <input type="text" name="email" value=""> </div> <input type='hidden' name='required_fields[]' value='email'> <input type="hidden" name="field_229" value=""> <div class="bftpro-form-group "> <input type="submit" value="Subscribe"> </div> </fieldset> <input type="hidden" name="bftpro_subscribe" value="1"> <input type="hidden" name="list_id" value="41"> <input type="hidden" name="required_fields[]" value=""> </form>
The page I need help with: [log in to see the link]
- The topic ‘cookie dat into hidden field’ is closed to new replies.