Form buttons on new application

Rajkumar Bommal
Tera Contributor

In new Application:

1.State value will be New, Work In Progress, Pending, resolve and closed state values to be managed by buttons. 
2.When state in work in progress i want to display only pending and resolve buttons only & make worknotes as mandatory

RajkumarBommal_0-1712578416114.png

 

 

1 ACCEPTED SOLUTION

tharun_kumar_m
Mega Guru

Hi Rajkumar,

 

Please navigate to the UI Action records, in the condition field add the conditions as below.

//for pending and resolve button
current.state == 1
//here 1 is the value of the state. To find the value of the state,  You may right click on the state field then choose Configure Dictionary. Go to the bottom of the form and look for the 'Choices' tab. The actual value should be on the 'Value' column.

 

To make work notes as mandatory, please navigate to System UI -> UI Policies and create a UI Policy by selecting your table and adding the required conditions there. In the script tab, you can add the below code.

function onCondition() {
	g_form.setMandatory('work_notes', true);
}

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.

 

Best regards,

Tharun Kumar

View solution in original post

2 REPLIES 2

tharun_kumar_m
Mega Guru

Hi Rajkumar,

 

Please navigate to the UI Action records, in the condition field add the conditions as below.

//for pending and resolve button
current.state == 1
//here 1 is the value of the state. To find the value of the state,  You may right click on the state field then choose Configure Dictionary. Go to the bottom of the form and look for the 'Choices' tab. The actual value should be on the 'Value' column.

 

To make work notes as mandatory, please navigate to System UI -> UI Policies and create a UI Policy by selecting your table and adding the required conditions there. In the script tab, you can add the below code.

function onCondition() {
	g_form.setMandatory('work_notes', true);
}

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.

 

Best regards,

Tharun Kumar

IbrahimK4837164
Tera Contributor

In the new application, you need to implement buttons to manage task states. The states will be New, In Progress, Pending, Resolved, and Closed. When a task is in progress, we display only the "Waiting" and "Resolution" buttons, and also make work notes mandatory. This approach will simplify task management and make the process more structured.