Forums

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

Receiving Sil Program Exception: "The "getInput" routine can only be used in validators

Nannette Mori
Contributor
January 31, 2023

The sil script is a validator so I don't understand why I am getting that exception

 

Snippet of Code:

 

string dateRequired = #{Date Required?};

if(getInput(dateRequired == "YES")){

    if(hasInput(customfield_XXXX))

  {

 

    return false, customfield_XXXX, "Receiver Required Date must be filled out";

 }

 

I am getting the sil exception on the following line

 

if(getInput(dateRequired == "YES"))

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.22.6
TAGS
AUG Leaders

Atlassian Community Events