Skip to main content
Merged

Modeldriven custom in-line Field validation messages

Related products:Universal UI
  • March 2, 2021
  • 3 replies
  • 164 views

Arie V
Community Manager
Forum|alt.badge.img+12

With the Universal GUI come great visual features, one of those features is the in-line Domain min/max and Mandatory field validation in Universal. In addition to those standard validations we would like to display Modeldriven custom in-line Field validations as well. Compared to alternatives like the snackbar and pop-up this in-line field validation message serves end users much better as attention is immediately drawn to the applicable field(s). 

Imagine having a domain for an email address: we always want to validate this email address with a regex: [a-z]*@[a-z][a-z]*.[a-z][a-z]*. We want to do this for every field with this domain and we want to show a message that the email address provided is not correct. But what if we can put the regex in the SF behind the domain together with a msg_id?

Then when a user enters an invalid email address the message with msg_id provided in the domain_validation will show up (even with parameters such as col_id_transl) and the field will get a red border so the user knows instantly where the error occured and what is wrong.

We can also imagine that we get a validation that we cannot model and we have to write code for, we could maybe add parameters to the layout procedure:
@col_id_validated int
@col_id_validation_msg_id msg_id

In the layout procedure we can put a @col_id_validated to 0 if we want to raise an error, this way the GUI knows to put a red border arround the field specified and the user cannot save the record, optionally you provide a @col_id_validation_msg_id to show as an inline message to the user.

It relates a bit to another great idea “Validate field input value without using a default/layout/trigger”, this idea adds how the Universal GUI should then display the validations.

3 replies

Jasper
Thinkwiser
  • April 2, 2021

Hi Arie, 

Thank you for submitting this idea. This is definitely feature that we want to add in the future.


Jasper
Thinkwiser
  • April 2, 2021
Updated idea status NewOpen

Jasper
Thinkwiser
  • April 14, 2021
Updated idea status OpenDuplicate
Idea merged into:

All the votes from this idea have been transferred.