I Created a forms speacially to save the forms in Laserfiche and I added some jquery Scripting to handle the way the forms will look like when some fields are hide by the rule
$(document).ready(function() { $('#q100').addClass('classoption1').removeClass('classoption2'); $('#q5').addClass('IToption').removeAttr('style'); var MyVar = $('#q1 select option:selected').val(); switch(MyVar) { case 'New Employee': $('#q100').addClass('classoption2').removeClass('classoption1');break; case 'Redeploy': $('#q100').addClass('classoption2').removeClass('classoption1');break; case 'Return to Vendor': $('#q100').addClass('classoption2').removeClass('classoption1');break; case 'Device Upgrade': $('#q100').addClass('classoption1').removeClass('classoption2');break; } });
It works if I open the form in a web broswer, means if I pass by a user task in the BP workflow of forms, here the result in the web broswer
but if I send it to a save to laserfiche task I got this result in the laserfiche document view
is there a way to get the javascript working when do save to laserfiche, it looks like it works just in half part of the first line works but as soon they is faced to a cif or swith condition to do comparaison, the script do not work