How can I show survey in spmodal window?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 06:41 PM - edited 07-24-2023 09:45 PM
Hi, I am trying to display the survey in a spmodal as shown in the following image.
I was investigating and I found that a widget can be displayed in a spModal popup, https://www.youtube.com/watch?v=jtRYa_kUmCI, in the example I found they showed an incident in the popup, but when I do it to display the survey, the survey is not displayed, it is displayed like this.
Your help please.
This is my code
Client Script:
api.controller=function(spModal){
var c = this;
if(c.data.check == true){
spModal.open({
title:"Recordatorio de Encuesta Pendiente 2",
widget:"ibk_take-survey",
widgetInput:{sys_id:'d7e89b6e1bc0391079ab0d47dc4bcb83',table:'asmt_assessment_instance'}
//widget:"widget-form",
//widgetInput:{sys_id:'1515936a1bc0391079ab0d47dc4bcbc1',table:'incident'}
}).then(function(){
alert('Cerrando ventana');
})
}
c.closeModal = function() {
c.modalInstance.close();
}
c.goSurvey = function(){
document.location = "?id=my_surveys";
}
}
Server Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 02:16 PM
Hello there, did you found any solution for this?
Best regards