Hi,
Rather late here and my brain is stuck. Basically I'm trying to understand how to use the gform_save_field_value() and gform_get_input_value() filters to
a) encode/encrypt an entire form or
b) just a particular field in a form.
In the docs - what is 10, 4? I thought it was in relation to the field and form ids?
<?php
add_filter("gform_save_field_value", "save_field_value", 10, 4);
function save_field_value($value, $lead, $field, $form){
return base64_encode($value);
}
add_filter("gform_get_input_value", "decode_field", 10, 4);
function decrypt_field($value, $lead, $field, $input_id){
return base64_decode($value);
}
?>
My form is at http://tinyurl.com/bvrcqh5
My form ID is 2, and the 'Telephone' field is field ID 4.
Thanks
ax10