Forums

Load state hide with AJAX submit

johnoathome 16 May, 2015
Hi,

I've been working up a fairly complex multipage form with AJAX submits but I've found I can't hide the submit button using the Load State in the form. I'm not much on AJAX, but I suspect this is because its not actually firing the load event when it refreshes the page. Is this correct, or should hiding elements on load work with AJAX in Chronoforms?

I can work around this by setting the initial state to hidden with CSS and then showing the button from a change event using javascript, but it would be neater if I could do it in the form.

Thanks
John
GreyHead 18 May, 2015
Hi John,

I think you are correct, the load state is only set when there is a 'hard reload'. You would have to reset it with CSS/JavaScript JavaScript after an Ajax submission.

Bob
johnoathome 22 May, 2015
Ok thanks Bob, I did it with javascript.
This topic is locked and no more replies can be posted.