Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • depFieldDefnId: 322521 - this means this field is dependent on the field with the schedulerPreferenceFieldDefnId of 322521 which has a dataType of DATE
  • depCondition: "LT" (stands for "Less Than") 
  • depValue: "6570"
  • depType: "AGE_FROM_APPT_DATE"
  • depAction: "DISABLE"
  • depSetValue: "Age Requirement Not Met"
  • depError: "You do not meet the requirements to answer this question"


Combining the settings of these properties together means that this field should behave a certain way depending on the value the person booking puts in the Date of Birth Field field (which in this case is schedulerPreferenceFieldDefnId 322521). Reading them together in a logical way, it means that IF someone puts a value in the field that has the ID 322521 (depFieldDefnId) that is LESS THAN (depCondition) 6570 (depValue) days from the DATE OF THE APPOINTMENT (depType) then DISABLE (depAction) this field (the "First Field Dependent on Date of Birth" field) and show the error message "You do not meet the requirements to answer this question" (depError) , - then when the appointment is saved, save the field with the "value" property on the field set to "Age Requirement Not Met" (depSetValue). OTHERWISE, leave the field enabled to let them fill in whatever value they want.

...