Reply To: Passing a setting to the redirect URL

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Passing a setting to the redirect URL Reply To: Passing a setting to the redirect URL

#11225

Ernest Marcinko
Keymaster

Hi,

The field values for checkboxes are passed along in the $_POST request variable. Each fieldset group has a unique name to prevent conflicts. The best was to find the name is by simply using the developer tools, in your case: https://i.imgur.com/esNra6o.png

So the selected items will be in the:

$_POST['aspf1_11']['wpcf-item_type_1']

array.

But the problem is that you won't be able to add that there, as this is set only after the search is already printed on the page. The only solution is to create some kind of javascript code to change the redirect url on the FORM element.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)