checkboxes dont work outside of main form
Status: Beta
Brought to you by:
pcxuser
As we have been dicussing checkboxes are NEVER checked
outside of the main form. I have forms in xiwa
(Reports/Objects/Detailed.pm) which contain checkboxes.
The same checkboxes are defined in both forms. main
and display. The checkboxes in main work properly.
Checkboxes in display NEVER show up checked. I even
set the checked attribute manually just before calling
printForm and they are still NOT checked.
I swapped the forms AND the checkboxes WORK properly in
the display form renamed to MAIN AS i suspected.
THIS is a huge problem because I am using these
checkboxes for required functionality in xiwa.
Logged In: YES
user_id=236631
It appears that the real problem is the way the portal is
using the form objects. I am re-using the same object to
display multiple forms and the portal is calling
formObj->clearErrors. AFter that call ALL MY checkboxes are
RESET to NOTHING. This is wrong. the checkboxes should be
left alone on clearErrors. I looked over the clearErrors
code and dont see how this is even happening. I am
attaching my testing scripts.
Logged In: YES
user_id=236631
Originator: YES
i have worked around this by changing the formSubmitted variable to be main instead of the form name by using substitution on the body of the doc before displaying it.