Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i validate number field using script validator ?

Vikrant Yadav
Community Champion
March 31, 2020

I want to validate number field so that user can't enter value less than 1, i have scripted validator option. which script do i need to enter.

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2020

If this is via ScriptRunner, you can enter just

cfValue("name of field") > 1

Vikrant Yadav
Community Champion
April 9, 2020

@Nic Brough -Adaptavist- Thanks Mate, you always helps me..

 

KR

Vikrant Yadav

Suggest an answer

Log in or Sign up to answer