Need Edit button in Approval section On change request form

nameisnani
Mega Sage

Hi , 

 

We have a requirement that  we need  enable edit button in change management for under Approval section for particular users for them to add adhoc approval for change authorizations. 

 

SunilKumarPadh_0-1667967959826.png

 

BESIDE NEW BUTTON WE NEED ADD EDIT BUTTUON ALSO 

 

@Saurav11 @kamlesh kjmar 

 

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

hello,

 

Please do the below:-

 

Go to Approver related list right click-> configure-> list control

 

Saurav11_0-1667968266765.png

 

Uncheck the omit edit button checkbox and add the roles which should have the edit option.

 

Saurav11_1-1667968322237.png

 

Incase if you want to make the edit button available for a particular group or user just add the below script in the omit edit condition field(sometimes this fields is not visible just configure form layout and bring it on the form) and also make sure the omit edit button checkbox is unchecked.

 

For users use below script:-

 

answer= true;
if(gs.getUserID()=='sysidoftheuser')
	{
		answer=false;
	}

 

If it is for group use the below:-

 

answer= true;
if(gs.getUser().isMemberOf('sysidofthegroup'))
	{
		answer=false;
	}

 

Saurav11_2-1667968595576.png

 

Please mark my answer as correct based on Impact.

 

View solution in original post

2 REPLIES 2

Saurav11
Kilo Patron
Kilo Patron

hello,

 

Please do the below:-

 

Go to Approver related list right click-> configure-> list control

 

Saurav11_0-1667968266765.png

 

Uncheck the omit edit button checkbox and add the roles which should have the edit option.

 

Saurav11_1-1667968322237.png

 

Incase if you want to make the edit button available for a particular group or user just add the below script in the omit edit condition field(sometimes this fields is not visible just configure form layout and bring it on the form) and also make sure the omit edit button checkbox is unchecked.

 

For users use below script:-

 

answer= true;
if(gs.getUserID()=='sysidoftheuser')
	{
		answer=false;
	}

 

If it is for group use the below:-

 

answer= true;
if(gs.getUser().isMemberOf('sysidofthegroup'))
	{
		answer=false;
	}

 

Saurav11_2-1667968595576.png

 

Please mark my answer as correct based on Impact.

 

@Saurav11 sure saurav let me try