I updated a jetform with a series of checkboxes and text fields. The checkboxes are all supposed to have an "X" in them, and the value of the fields is populated by rules (shown below). The visibility of the various objects depends on the value of another object....if there is a value in the specified object, the checkbox and Text field are supposed to be visible. If no value, they should be hidden. The reference value is set by data submitted to Jetforms by Syteline.
Everything works as expected in Form Filler, but On the output of the revised Jet form (call from Syteline through JetForm Central), there are checkboxes without checks, and unpopulated text fields regardless of the values of the fields in question.
I understand I may need to create a TDF file to use calculations. This jetform (and a twin with a different logo) does not have a TDF. I have the documentation but am confused on how it works. If someone has a simple example that would help. In the meantime I'll continue to pore over the documentation.
Here are the rules I wrote, Stored in Page Rules, Subform Entry. (Other choices are Subform Exit, Subform Initialization, Subform Termination) I tested with Jeform Filler, and they appear to work there but not when actually run through the Jetform server engine.
SetValue ("EPCRA 7349-96-5","Chem2CheckLabel")
SetVisible (If (len(CHEM2) = 0, 0, 1),"Chem2Check","Chem2CheckLabel")
SetValue ("EPCRA 7723-14-0","Chem3CheckLabel")
SetVisible (If (len(CHEM3) = 0, 0, 1),"Chem3Check","Chem3CheckLabel")
SetValue ("EPCRA 7440-47-3","Chem6CheckLabel")
SetVisible (If (len(CHEM6) = 0, 0, 1),"Chem6Check","Chem6CheckLabel")
SetValue ("EPCRA 7440-02-0","Chem7CheckLabel")
SetVisible (If (len(CHEM7) = 0, 0, 1),"Chem7Check","Chem7CheckLabel")
SetValue ("EPCRA 1313-27-5","Chem8CheckLabel")
SetVisible (If (len(CHEM8) = 0, 0, 1),"Chem8Check","Chem8CheckLabel")
SetValue ("EPCRA 7440-50-8","Chem9CheckLabel")
SetVisible (If (len(CHEM9) = 0, 0, 1),"Chem9Check","Chem9CheckLabel")
SetValue ("EPCRA 7440-62-2","Chem11CheckLabel")
SetVisible (If (len(CHEM11) = 0, 0, 1),"Chem11Check","Chem11CheckLabel")
SetValue ("EPCRA 7440-38-2","Chem12CheckLabel")
SetVisible (If (len(CHEM12) = 0, 0, 1),"Chem12Check","Chem12CheckLabel")
SetValue ("EPCRA 7440-36-0","Chem13CheckLabel")
SetVisible (If (len(CHEM13) = 0, 0, 1),"Chem13Check","Chem13CheckLabel")
SetValue ("EPCRA 7440-48-4","Chem15CheckLabel")
SetVisible (If (len(CHEM15) = 0, 0, 1),"Chem15Check","Chem15CheckLabel")
SetValue ("EPCRA 7440-28-0","Chem17CheckLabel")
SetVisible (If (len(CHEM17) = 0, 0, 1),"Chem17Check","Chem17CheckLabel")
Everything works as expected in Form Filler, but On the output of the revised Jet form (call from Syteline through JetForm Central), there are checkboxes without checks, and unpopulated text fields regardless of the values of the fields in question.
I understand I may need to create a TDF file to use calculations. This jetform (and a twin with a different logo) does not have a TDF. I have the documentation but am confused on how it works. If someone has a simple example that would help. In the meantime I'll continue to pore over the documentation.
Here are the rules I wrote, Stored in Page Rules, Subform Entry. (Other choices are Subform Exit, Subform Initialization, Subform Termination) I tested with Jeform Filler, and they appear to work there but not when actually run through the Jetform server engine.
SetValue ("EPCRA 7349-96-5","Chem2CheckLabel")
SetVisible (If (len(CHEM2) = 0, 0, 1),"Chem2Check","Chem2CheckLabel")
SetValue ("EPCRA 7723-14-0","Chem3CheckLabel")
SetVisible (If (len(CHEM3) = 0, 0, 1),"Chem3Check","Chem3CheckLabel")
SetValue ("EPCRA 7440-47-3","Chem6CheckLabel")
SetVisible (If (len(CHEM6) = 0, 0, 1),"Chem6Check","Chem6CheckLabel")
SetValue ("EPCRA 7440-02-0","Chem7CheckLabel")
SetVisible (If (len(CHEM7) = 0, 0, 1),"Chem7Check","Chem7CheckLabel")
SetValue ("EPCRA 1313-27-5","Chem8CheckLabel")
SetVisible (If (len(CHEM8) = 0, 0, 1),"Chem8Check","Chem8CheckLabel")
SetValue ("EPCRA 7440-50-8","Chem9CheckLabel")
SetVisible (If (len(CHEM9) = 0, 0, 1),"Chem9Check","Chem9CheckLabel")
SetValue ("EPCRA 7440-62-2","Chem11CheckLabel")
SetVisible (If (len(CHEM11) = 0, 0, 1),"Chem11Check","Chem11CheckLabel")
SetValue ("EPCRA 7440-38-2","Chem12CheckLabel")
SetVisible (If (len(CHEM12) = 0, 0, 1),"Chem12Check","Chem12CheckLabel")
SetValue ("EPCRA 7440-36-0","Chem13CheckLabel")
SetVisible (If (len(CHEM13) = 0, 0, 1),"Chem13Check","Chem13CheckLabel")
SetValue ("EPCRA 7440-48-4","Chem15CheckLabel")
SetVisible (If (len(CHEM15) = 0, 0, 1),"Chem15Check","Chem15CheckLabel")
SetValue ("EPCRA 7440-28-0","Chem17CheckLabel")
SetVisible (If (len(CHEM17) = 0, 0, 1),"Chem17Check","Chem17CheckLabel")