I’ve got to start by stating: I like what I see…
Let’s take a Phone field, on the Contact form. You will see a new tab called Business Rules. Go to it :)
Click on New, and create a new rule to check if the field contains data. Bring a message to the user if number is blank. The rule could look like this (not very fond of the size of that title, it doesn’t have to knock me over the head):
Activate it. You get prompted for confirmation:
Click OK and return to your Contact form. Now try and see what you did. remove the number from an existing contact, and try to tab out. You will get this:
So now you don’t have to overload your instance with your possibly buggy JavaScript, and waste your time debugging it. You can easily shave off some of the common scripts we probably all have in our library we built from previous versions.
Of course, the example is as basic as possible, and it could have been achieved by marking the field as mandatory :)
Enjoy!
Leave a Reply