In a form I want to use next button, when clicked on next it has to move from current state to next.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2024 12:51 AM
In a form I want to use next button, when clicked on next it has to move from current state to next.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2024 01:03 AM - edited ‎11-17-2024 01:04 AM
Hi @vipuljay
You can do this by checking the "client" box on that UI Action settings and then use script as:
g_form.setValue('state', ?);
replace state value depend on your value
Mark it Helpful and Accept Solution!! If this helps you to slove your query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2024 11:58 AM - edited ‎11-17-2024 12:03 PM
Hi @vipuljay ,
If you want a record to move into the next state irrespective of which state it is in currently, upon clicking on 'Next' button. So for example if the record is in 'Employee data' it should go to 'Employee search', and if the record is in 'Employee search' it should go to 'Employee details'.
You need to create a UI action on this table named 'Next'. It should be a server side one and client checkbox should be unchecked.
In the script you can write the code like below by doing adjustment according to the 'State' values you have,
if (current.state == 'Employee data')
{
current.state = 'Employee search';
current.update();
}
else if
(current.state == 'Employee search')
{
current.state = 'Employee details';
current.update();
}
If this address your question, please don't forget to mark this response correct by clicking on Accept as Solution and/or Kudos.
You may mark this helpful as well if it helps you.
Thanks,
Animesh Das