I would like create script for field Mobile No. if the Mobile Number less 10 digital give him show custom dialog also change the color for field to red by ( conditional formatting ).
Take a look at the Length function. You can create a script trigger with an IF statement that fires on commit (onObjectSave) or perhaps onObjectExit, depending on your desired U/X. If the field contains fewer than 10 characters, show the dialog.
If [ Length (YourTable::mobileNo ) < 10 ]
Show Custom Dialog...
Go to field [YourTable::mobileNo]...
I suggest you decide what to do if the field is empty, if there are different rules from when there is data but fewer than 10 characters.
Conditional formatting will be similar in that Length can help you there. Just use the function in the calculation there, rather than the IF statement.
Edit to add: I would take the user to the field in question with the "Go to Field..." script step as well.
thanks is working fine.
Great! Glad to hear it. Post back if you need any refinements.
Retrieving data ...