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
December 9, 2016 at 10:51 am
#11225
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.
- This reply was modified 7 years, 3 months ago by Ernest Marcinko.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)