Hello,
I'm trying to create a 'Presense' Form in which users can indicate that they will attend an event.
So my form is pretty trival with one RadioBox and some hidden fields to store the user and eventId.
I prefer not to have a submit button, as that just adds action to take. A change in Radio state should trigger the submit.
I've added events to the radiobox to trigger a jscript function from which I can call the submit.
However as I want the form to reload automatically with the chosen status, I would end up in an endless loop of submits because the events defined to the radiobox are state driven and not change driven.
To this means I added another hidden value to cache the value of the radiobutton, so that I can judge in jscript wether or not to submit.
Is there a jscript equivalent of $form->data['MyRadio'] in php?
Or any other pointers on how to approach this problem?
Thanx,
Bart
I'm trying to create a 'Presense' Form in which users can indicate that they will attend an event.
So my form is pretty trival with one RadioBox and some hidden fields to store the user and eventId.
I prefer not to have a submit button, as that just adds action to take. A change in Radio state should trigger the submit.
I've added events to the radiobox to trigger a jscript function from which I can call the submit.
However as I want the form to reload automatically with the chosen status, I would end up in an endless loop of submits because the events defined to the radiobox are state driven and not change driven.
To this means I added another hidden value to cache the value of the radiobutton, so that I can judge in jscript wether or not to submit.
Is there a jscript equivalent of $form->data['MyRadio'] in php?
Or any other pointers on how to approach this problem?
Thanx,
Bart