Hi,
have an form with fields show depending on selection made in a dropdown at initial load.
When SS validation passes the form is redisplayed with the errors but the initial fields are the only ones that are shown not those where the date has been put in.
I know this is a result of the JS initial excecuted by
Question now is how can i find out that the form is initially displayed or is a redisplay after the SS Validaton is passed so that i can adopt my JS?
have an form with fields show depending on selection made in a dropdown at initial load.
When SS validation passes the form is redisplayed with the errors but the initial fields are the only ones that are shown not those where the date has been put in.
I know this is a result of the JS initial excecuted by
jQuery(document).ready(function() {....
Question now is how can i find out that the form is initially displayed or is a redisplay after the SS Validaton is passed so that i can adopt my JS?
Hi rodiusd,
You have to add JavaScript to run when the page is loaded that checks the drop-down value and repeats any data look-up - and re-sets any hidden elements.
I have no idea what jQuery has to do with this though :-(
Bob
You have to add JavaScript to run when the page is loaded that checks the drop-down value and repeats any data look-up - and re-sets any hidden elements.
I have no idea what jQuery has to do with this though :-(
Bob
Hi Bob,
have jquery doing the js stuff for me as its already there from joomla.
Need only to know how to distinct between when that the form is loaded the first time or has been loaded due to a re-onload after the SS validation.
So do you know a simple way of checking this?
have jquery doing the js stuff for me as its already there from joomla.
Need only to know how to distinct between when that the form is loaded the first time or has been loaded due to a re-onload after the SS validation.
So do you know a simple way of checking this?
This topic is locked and no more replies can be posted.