Draft to Planning Stage.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 03:16 AM
Hello Developer,
I created one UI Action "Planning" button on the form below is the script.
What is happing is that before even Assignment group is filled State field is already moved to Planning Stage.
How to correct this.
Thank you.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 03:23 AM - edited 05-06-2024 03:23 AM
Hi @Mayur Patil2 ,
If needed add an if condition on the first line to check whether the assignment group is empty or not and then set the state value
FYR:
if (assignment_group==""){
g_form.addErrorMessage("Any message")}
else{
g_form.setValue();
gsft function
}
Regards