Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Hide/Remove SAVE button on customer survey in service portal

Abdulrajak Shai
Tera Contributor

Hi All,

How to hide/remove the SAVE button on survey form(customer survey) in service portal.

I have modified assessment_take2 to hide SAVE button on platform and it works fine. How to hide the same in service portal? Can any one please help.

find_real_file.png

 

Thank you.

5 REPLIES 5

qdfg
Tera Contributor

In case someone is running into this (somewhat older) question, I managed to remove the Save button on the portal survey like this:

  • open the Surveys and Assessments widget.
  • Clone it (since it is read only)
  • In the Server script part, around line 94, there is some code that says

 

actions = decodeURIComponent(actions);
if (actions.length != 0) {
actionTypes = actions.split(',');
if (actionTypes.indexOf('cancel') != -1) data.assessment.hide_cancel = true;
if (actionTypes.indexOf('save') != -1) data.assessment.hide_save = true;
}

 

 

  • Change this code to 

 

actions = decodeURIComponent(actions);
if (actions.length != 0) {
actionTypes = actions.split(',');
if (actionTypes.indexOf('cancel') != -1) data.assessment.hide_cancel = true;
//if (actionTypes.indexOf('save') != -1) data.assessment.hide_save = true;
}
data.assessment.hide_save = true;​

 

And then add this cloned widget to your survey portal page