Discussion

4
Replies
159
Views
Juan Cortines (cortj)
PEGA
Principal Software Engineer
Pegasystems Inc.
PL
cortj Member since 2014 7 posts
PEGA
Posted: June 10, 2015
Last activity: June 10, 2015
Posted: 10 Jun 2015 6:55 EDT
Last activity: 10 Jun 2015 10:46 EDT
Closed

Quiz question on Validating User Input lesson

Hi,

The following question from the quiz:

Validating user input against a range of values is best accomplished: (Choose One)

  • Setting the “Min/Max chars” value on the form control
  • Using a Validate rule
  • Using the “Display and Validation” settings on the property
  • Setting the “Min/Max chars” values on the property

In order to pass the quiz the user needs to select Using a Validate rule as the only possible answer.

However, at least in my opinion, Using the “Display and Validation” settings on the property may be a better option depending on the context:

  • If the range of possible values depends on the property's context, then a Validate rule is the best option. For example, Financial Plan might have different ranges of possible values depending on other Input, e.g. Customer Status (Gold, Silver, etc..)
  • If the property has an invariable range of possible values, e.g. Gender, I think it makes more sense to define it at the Property lelevl using Display and Validation settings.

Does it make sense?

Thanks,

Juan Cortines

Pega Academy
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.