Difference between revisions of "Part 2: Validating Data in a Form"

From AgileApps Support Wiki
 
Line 9: Line 9:
## When you click '''Save''', you see the error message that you specified:<br><br>[[File:Create_New_Line_Item_Error.png|800px]]<br><br>
## When you click '''Save''', you see the error message that you specified:<br><br>[[File:Create_New_Line_Item_Error.png|800px]]<br><br>
##: You cannot save the Line Item until you provide a value in the Price field that is greater than zero.
##: You cannot save the Line Item until you provide a value in the Price field that is greater than zero.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
:{| border="0" align="left" cellpadding="5" cellspacing="1"
|
[[Part 1: Customizing the Default Layout Form|Previous]]
|}
:{| border="0" align="right" cellpadding="5" cellspacing="1"
|
[[Part 3: Add a Lookup field|Next]]
|}

Latest revision as of 10:52, 14 December 2022

In this part of the exercise, you validate data in the Price field of the Line Items Object.

  1. Go to the Configuration page, under the Customization tile, click Objects. Navigate to Line Items > Validations.
  2. Click New Validation.
  3. Fill in the Form as shown:

    Objects Line Items Validations PriceCheck.png

  4. Click Check Syntax to ensure there are no errors.
  5. Click Save.
  6. To test this validation:
    1. Click the LINE ITEMS tab, and then create a New Line Item, but do not provide a price.
    2. When you click Save, you see the error message that you specified:

      Create New Line Item Error.png

      You cannot save the Line Item until you provide a value in the Price field that is greater than zero.

Previous

Next