[Pansophy] FW: NCR checkboxes - ER5C-NCR-R12-P1-Data.cfm upgraded and other Projects too -> code changes were done!
Valerie Bookwalter
bookwalt at jlab.org
Tue Feb 7 17:50:13 EST 2023
Team,
I have corrected this problem.
I'm surprised that no one had encountered this prior to now.
When using a checkbox in a form, once it is CHECKED, it can not be UNCHECKED with the code I originally had.
<CFIF isdefined('form.Dimensional') >
Dimensional='#form.Dimensional#',
</CFIF>
When a user UNCHECKED a checkbox, then it is no longer "defined" in the form. Therefore, this section of code would not be executed and alas not undo the box.
So, I have upgraded NCR-R12-P1-Data.cfm files to have the following type of code for each of the checkboxes found in the NCR (page 1).
<CFIF isdefined('form.Dimensional') >
Dimensional='#form.Dimensional#',
<CFELSE>
Dimensional='0',
</CFIF>
I have propagated this change to the following project areas: ER5C, C100R, L2HE, AUPPS, SRFRD.
If other projects need this upgrade, please let me know ASAP.
I have also updated the "template" we use for populating new project areas.
Valerie
From: Pansophy <pansophy-bounces at mailman.jlab.org> On Behalf Of George DeKerlegand via Pansophy
Sent: Monday, February 6, 2023 6:20 PM
To: pansophy <pansophy at jlab.org>
Cc: Danny Forehand <forehand at jlab.org>; E. Anne McEwen <mcewen at jlab.org>
Subject: [Pansophy] NCR checkboxes
Hi pansophy,
I created a NCR for a scratch and accidentally checked the dimensional checkbox in the NCR. When I went back to undo it and I unchecked it and hit submit button it still shows up with same dimensional box checked afterwards. Could you please take a look at this when you get a chance?
https://pansophy.jlab.org/pansophy/Travelers/TRAVELER_FORM.cfm?project=ER5C&area=ER5C&system=INSP&TRAV_ID=ER5C-NCR&TRAV_REVISION=R12&page=1&maxpage=4&TRAV_SEQ_NUM=846&travstat=n&serialnum=5C75-RI-024&NCRID=ER5C-INSP-CAV-R7-149
Thanks,
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/pansophy/attachments/20230207/6489777b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NCR_screenshot.docx
Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Size: 189454 bytes
Desc: NCR_screenshot.docx
URL: <https://mailman.jlab.org/pipermail/pansophy/attachments/20230207/6489777b/attachment-0001.docx>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <https://mailman.jlab.org/pipermail/pansophy/attachments/20230207/6489777b/attachment-0001.txt>
More information about the Pansophy
mailing list