Hide Cancel and Save buttons on Service Portal customer survey

richard38
Tera Guru

Hello, I'm new to Service Portal development and I am looking to remove the Cancel and Save buttons from the survey. I've modified assessment_take2 to hide these and it works from the standard interface side. When the survey is opened from the Service Portal side the buttons remain.

 

thank you

1 ACCEPTED SOLUTION

Simon Rudd
Tera Contributor

Hi richcab,

I had the same issue and have a solution:

The name of the widget you need is called 'take survey'. Inside the widget, there is a related list called 'Angular Providers'. Within here, there is 'spSurveyForm' which is where you will find the buttons. (the save button is around line 70) You just need to comment out the line.

Let me know if this works for you.

 

View solution in original post

17 REPLIES 17

Hi,

 

I've tried this solution but I've got an issue. On my dev environment it works as intended, but when i've moved the solution to our Production instance, it didn't work. The Cancel and Save button were still there.

 

got any idea what could be the issue?

hmmmm, not sure. Were there any errors when the update was moved?

No I didn't see any errors

I would take a look at it on the client side in your production instance. Using chrome, right-click on the button and select 'Inspect'. Add the property (visibility: hidden; see attached image) and see if it hides. If not, there may be something upstream that's defaulting the property to visible. What's different in the two environments? Theme maybe? You can always resort to asking HI for support if you cannot track it down.

If not, you can always edit the survey UI Page (assessment_take2) html code to remove the button. This will work, but it will be more permanent than page specific code.

 

In what way did you move the solution to your PROD Instance?