Check if field is read-only or mandatory in ATF server side script?

Alice18
Kilo Contributor

Hi,

 

I want to validate that a task variable field is read-only using ATF script, is that possible? I also want to validate that a field is mandatory upon closure of the task, but seems like the mandatory check is not available in server side script.

 

Thanks in advance!

Alice 

5 REPLIES 5

Abdul30
Kilo Contributor

Hi Alice, I believe you should be able to do this by using one of the following OOTB steps: 

  1. Products -> Variable State Validation: This step can be used to check the state of the variable such as (mandatory, visible, read-only, etc..)
  2. Products -> Validate Variable Values: This step can be used to validate the actual value that was selected within that variable.
  3. Products -> Set Variable Values: This step will populate a variable with a value. 

You have to make sure the task/form is first opened, then you can validate the variables. I hope this helps.

Thanks

---

Please mark my answer as correct if it has helped you. Thanks!