redirectToURL doesn’t seem to work
-
Hello,
thank you very much for this great plugin!I’m trying to do something similar to what is discussed here:
https://www.ads-software.com/support/topic/generate-url-from-input-field/I want to create a library search form that works like this one:
https://triocasci.cz/knihovna/It generates a URL (with results on another web) from the input fields such as:
https://svobodnaknihovna.cz/cgi-bin/koha/opac-search.pl?idx=ti&q=test&limit=branch%3Aka3o&weight_search=1
I have a CFF form with the following settings:
Display loading form animation – disabled
Enable autocompletion – disabled
Enable the browser’s persistence – disabled
Dynamically evaluate the equations associated with the calculated fields – disabled
Eval the equations in the onchange and keyup events – enabledAnd with the following fields:
fieldname1 – Single Line Text
fieldname2 – Dropdown – Choices – Text Autor, Value =au etc. for other choices
fieldname3 – Dropdown – Choices – Text BibLib, Value =branch%3ABIBLIB etc.
(both fieldname2 and fieldname3 have Value to submit: Choice Value)fieldname4 – Calculated Field:
Read Only and Hide Field From Public Page are enabled
Set equation:
redirectToURL('https://svobodnaknihovna.cz/cgi-bin/koha/opac-search.pl?idx'+fieldname2+'&q='+fieldname1+'&limit'+fieldname3+'&weight_search=1')
fieldname5 – Button – type calculate:
OnClick event:
jQuery(this.form).submit();
The form looks fine visually, but when I click the button, instead of redirecting to the desired URL, I am redirected to https://plac.triocasci.cz/zakladna/knihovna/?
What am I doing wrong? Is there a problem with the special characters in the values or is my OnClick event bad?
Thank you very much
PetrThe page I need help with: [log in to see the link]
- The topic ‘redirectToURL doesn’t seem to work’ is closed to new replies.