Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
"SUBMIT & GET NEXT TASK"
"SAVE & EXIT"
"SKIP & GET NEXT TASK"
"SUBMIT TASK & EXIT"

15. Enable/Disable fields in Excel View/Bulk tasks.

Code Block
let intentValue = values["Field_name"]
if (intentValue == "Field_name")
{ 

 this.enableField("Field_name",tID)
 this.enableField("Field_name",tID)
 this.mandatoryField("Field_name",true,tID)
 this.mandatoryField("Field_name",true,tID)
 } 
else if (intentValue == "Field_value" || intentValue == "Field_value" || intentValue == "Field_value" ||  intentValue == "Field_value" ||  intentValue == "Field_value" ) 
{
 this.disableField("Field_name",tID)
 this.disableField("Field_name",tID)
 this.changeFormValue("Field_name", " ",tID)
 this.changeFormValue("Field_name", " ",tID)
}

16. Excel View validations and manipulations:

Code Block
languagejs
let intentValue = values["Field_name"]
if (intentValue == "Field_name")
{ 

 this.enableField("Field_name",tID)
 this.enableField("Field_name",tID)
 this.mandatoryField("Field_name",true,tID)
 this.mandatoryField("Field_name",true,tID)
 } 
else if (intentValue == "Field_value" || intentValue == "Field_value" || intentValue == "Field_value" ||  intentValue == "Field_value" ||  intentValue == "Field_value" ) 
{
 this.disableField("Field_name",tID)
 this.disableField("Field_name",tID)
 this.changeFormValue("Field_name", " ",tID)
 this.changeFormValue("Field_name", " ",tID)
}