Hi
Without any answer we just give here our simple solution:
- put a conditional state on your field , select the 'function' method and write down the name of the JS function (here triggering_function )
- create a JS code field (in RAW mode) in the view or just write the JS code in the template
- the JS code should look like : in this example art_alias is the triggering field
function triggering_function ()
{
var value = document.querySelector('#art_alias').value;
if value == "This is the end"
return 1;
else
return 0;
}
of course for this purpose we don't need a JS call but it gives you a simple example
Thanks
cyril