The CreatorCon Call for Content is officially open! Get started here.

In a form I want to use next button, when clicked on next it has to move from current state to next.

vipuljay
Tera Contributor

In a form I want to use next button, when clicked on next it has to move from current state to next.

vipuljay_0-1731833457210.png




Thanks in advance

2 REPLIES 2

SK Chand Basha
Tera Sage
Tera Sage

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. 

Animesh Das2
Mega Sage
Mega Sage

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