I am trying to: apply the fix https://toolset.com/errata/url-parameter-value-is-not-set-for-the-field-inside-a-cred-form/ to my site so i can use urlparm in CRED form
please note i'm using the Beta version of Types, CRED and Views
Link to a page where the issue can be seen: hidden link
I expected to see: The CRED form on the page
Instead, I got: page with no CRED form
when i replace the "translate_field_factory.php" file as instructed the form is not displaying on the page. when i revert the original "translate_field_factory.php" the form display with no problem.
the issue is two folds
1. when trying to apply the fix the form don't show on the page
2. urlparm don't show in the url after submitting the form
i try to set the CRED form to include a urlparam with a few of the fields the user submit in the CRED form. however the urlparam is empty when i submit the form. so I'm not sure what to type in the urlparam=''
[cred_field field='form_submit' value='Match' urlparam='' class='btn btn-primary btn-lg' output='bootstrap']
the user fill the field my budget with a number. i want to take this number and pass it in a urlparam when i redirect the to a pge once the user submit the form.
the budget field in CRED look like this:
<div class="form-group">
<label>[wpml-string context='cred-form-My Rider Profile-65' name='My Budget is']My Budget is[/wpml-string]</label>
[cred_field field='my-budget-is' value='' urlparam='' class='form-control' output='bootstrap']
</div>
i would like to take the value of the the field "my-budget-is" and have the redirect urlparm something like (lets say the value is 2500)
<em><u>hidden link</u></em>
i tried:
urlparam='pr=[types field="my-budget-is" format="FIELD_VALUE"][/types]'
and
with no success
i used
add_filter('cred_success_redirect', 'custom_redirect',10,3);
function custom_redirect($url, $post_id, $form_data)
{
if ($form_data['id']==65)
return $_SERVER['HTTP_REFERER'];
return $url;
}
with no success
Please advice,
thanks,
David