How to create an error message

How to create an error message

It can be useful to create an "Error" to prevent an applicant from submitting an application.   Examples include...
  1. Create an error if a Single Membership attempts to add 2+ members.  
  2. Create an error to catch an invalid email.
  3. Create an error if a membership is not eligible for renew.  
Here's what the error message will look like.  This message appears if the applicant tries to submit.  This form can not be submitted due to the error
   

How To 

How to create an error message
GO TO: CALCULATIONS TAB
Use a calculation.
  1. Result Name: Name your calculation
  2. Expression: Add logic to determine when the error should trigger.  i.e. return TRUE (1) or FALSE (0)
    1. A common member count expression is: if(type==1&&{MemberCount}>1,1,0)
    2. A common RENEW expression is : if(#APP_IS_RNEW&&{TotalFeesWithoutProcess}==0,1,0)
  3. Attribute: Enter the message the applicant will read if the error triggers. (is TRUE) 
  4. Generates Error: Checked
GO TO: PREVIEW TAB
Preview & test your application using the preview tab.
  1. If your error will trigger, the calculation result will return: 1
  2. If your error will not trigger, the calculation will return: 0



How to create an error message & pop-up help text
While the form is being completed by your member, you can unhide help text if the error triggers.  Use this help text to guide your members.  

GO TO: CALCULATIONS TAB
Step 1
Use a calculation.
  1. Result Name: Name your calculation
  2. Expression: Add logic to determine when the error should trigger.  i.e. return TRUE (1) or FALSE (0)
    1. A common member count expression is: if(type==1&&{MemberCount}>1,1,0)
    2. A common RENEW expression is : if(#APP_IS_RNEW&&{TotalFeesWithoutProcess}==0,1,0)
  3. Attribute: Enter the message the applicant will read if the error triggers. (is TRUE) 
  4. Generates Error: Checked

GO TO: FORM TAB
Step 2
Add a RICHTEXTHTML FIELD.  Place this text where you wish the text to appear if the error is triggered
  1. Field Name: NameYourField
  2. Initially Hidden: Checked 
  3. Hide/Unhide Calculation: Use the result name from step 1.  (don't forget the curly brackets)
    1. Example: {SingleMembershipError}
  4. Rich Text: Enter text to guide your members
    1. If you're writing a membership count error. use: The number of members do not match the memberships type.  Please select a new membership type or adjust the number of members.  
    2. If you're writing a renewing membership error, use: We're sorry. Something went wrong. You can not renew your membership. Please submit a new application.  To submit a new application, click here: (link coming soon)

GO TO: PREVIEW TAB
Step 3
Preview & test your application using the preview tab.
  1. Complete your form
    1. Your help text will appear if the error is triggered

  1. Scroll to the bottom
    1. If your error will trigger, the calculation result will return: 1
    2. If your error will not trigger, the calculation will return: 0
How to validate an email
Please read our email help article.  CLICK HERE (opens in new tab)