Initialize on field form1.ProcurementLetter_Page1 is:
if (form1.RCP_Form_Page1.Block_28.Suppliers_Signature == null) then
form1.ProcurementLetter_Page1.presence = "hidden"
The above code works until you close and reopen the form. When reopening, it defaults back a null condition because null in this case doesn't work. I have even tried adding ".rawValue" at the end of "Suppliers_Signature" and that doesn't resolve it.
I think the root question is, how do I test the if statement to show a true condition of whether or not the signature field is signed?
Thanks for the example. This code works great for a button press but I can't get it to work with initialize.
I need to initialize the form with form1.ProcurementLetter_Page1.presence = "hidden" only when the signature field (form1.RCP_Form_Page1.Block_28.Suppliers_Signature) is unsigned. When the field is signed, I am going to use the PostSign event to trigger the appearance of this page. Unfortunetly, I can't get this to work using your code listed in your example. If I hide the page, I can get it to reappear after signature but when you close and reopen, the page is gone again. Here is the code I used: