SS Validation

rodiusd 27 Sep, 2013
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

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?
GreyHead 27 Sep, 2013
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
rodiusd 27 Sep, 2013
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?
GreyHead 27 Sep, 2013
Hi rodiusd,

Check the key inputs to see if they have values set.

Bob
This topic is locked and no more replies can be posted.