I have two checkboxes on a form tied to one-character fields (see attached). If checked, they set the underlying field to 'Y'; if unchecked, blank. When I check the 'Random Length' checkbox, the helper RPG program sets the 'Custom' field to 'Y' and also does a SetValue on that field. I also disable the 'Custom' checkbox so it can't be unchecked. I checked the helper program before it exits and the 'Custom' field is set to 'Y'. But when I hit the 'Save' button on the form, that calls a different program that reads the field from the form with GetFormChar(). It reads the 'Custom' field as blank but the 'Random Length' field as 'Y'. It doesn't matter if I check the 'Custom' checkbox first before checking the 'Random Length' field; the save program will read it as blank. If, however, I check the 'Custom' checkbox only, it stays enabled and the Save program reads it as 'Y'.
Announcement
Collapse
No announcement yet.
Can't read value from disabled checkbox
Collapse
X
-
Hi,
That looks like a bug. For the time being, remove the app variable linkage from the "Disable Field" and add it to the "Read Only" field. That should fix the issue. I will add this to our bug/features list.
Please let us know if you still experience issues after setting the field to read-only instead of disabled.
Thanks
Comment