Example URL: http://www.samplesite.com/?companyname=abcltd
I want to capture the values ββpassed in url into a formidable hidden field. I added [get param = companyname] the value of the hidden field. Works well when I am registered as an administrator.
BUt, if I logged out, I try to access the form from url, the value is not filled in a hidden field.
function frm_set_checked($values, $field){ if($field->id == 104){ $values['value'] = $_GET['companyname'] ; } } add_filter('frm_setup_new_fields_vars', 'frm_set_checked', 8, 2); add_filter('frm_setup_edit_fields_vars', 'frm_set_checked', 8, 3);
also tried using hook. The same thing happened. for a registered user, he fills in the parameter value in a hidden field. For an unclaimed user, he does not fill in the parameter value in a hidden field.
Thanks for any help in advance.
source share