Jump to content
Sign in to follow this  
rudym88

Field Validation

Recommended Posts

Hi guys,

Hopping someone can tell me what i am doing wrong; 

All i want is a message if "Start Field" is greater than "end Field" and vice versa 

Attempt 1

Validate field during data entry

WTS v2.0::DeliveryMilesStart > WTS v2.0::DeliveryMilesEnd

Display message if condition are not met

Conditional format to change color to red

Issue: validation not work but conditional format is (using the same formula for both format and validation

Attempt 2

Script: 

if [WTS v2.0::DeliveryMilesStart > WTS v2.0::DeliveryMilesEnd]

Show customer dialog [message]

clear [select entire contents \ target field: DeliveryMilesStart)

go to field [DeliveryMilesStart

issue it work clearing the content of the field but it does not go back to the correct field but it jumps to the end field

Attemp 2 i have tried using both on exit and validation trigger.

 

Any help is greatly appreciated

Thanks

Rudy. 

Share this post


Link to post
Share on other sites
Posted (edited)

If you're happy with the built-in validation error message, then validate one of the fields by calculation, and make sure to uncheck this option:

image.png.70424877d2db802c32769e97ca910c5a.png 

 

If you prefer to use a script trigger upon exiting the field, make sure the script returns a false result when the validation fails; otherwise the triggering event will be executed after the script has run.

 

 

Edited by comment

Share this post


Link to post
Share on other sites

Thanks

Works great.

Share this post


Link to post
Share on other sites

I have another question along the same validation lines.

i have a field: kDocumentNumber - "Unique value" is checked

and i have the field on the layout is set to trigger on exit i cant get the window to show with either script.

 

image.png.54a3431076d573cfaaaaada5970987a8.png

image.png.9ac3b6c1e4bcdc429f2e8c2b00e5ecd8.png

I cant get it to show the new window with either script.

The idea is if there value exist it will show a custom window

image.png.91df3063fee09a5540a0978ed5d7d854.png

Thanks for your 

rudy

Edited by JMart

Share this post


Link to post
Share on other sites
9 minutes ago, JMart said:

I have another question along the same validation lines.

I don't see how this is related to the original question. I suggest you start a new thread - and make sure we can see what you're doing before you capture the error.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    David Doscher 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.