Custom surveys using ui page

blodgjm
Giga Contributor

I am throwing up my hands! I need something like the smiley survey (on share) BUT I need it to have functionality like the wizard. I need the ability to present one question at a time for a mobile view. But I can't get the macro for the smiley to work on the panels. I tried a different approach, public ui page. The page presents the single question and after submitting, it is supposed to create the survey instance, question 1 and update the task survey record. It presents a pretty page but never submits anything. anyone done anything similar.....ui page to create and update records???

1 ACCEPTED SOLUTION

blodgjm
Giga Contributor

So, I finally resolved my issues.   Mostly it was getting a better understanding of the full process involved with the Legacy Surveys.   I ended up creating a desktop version of the survey (similar to the original Smiley but with new graphics and show/hide functionality to require more feedback based on the answer).   Then I created a second version for the mobile.   The mobile is actually multiple surveys displayed one page at a time with modifications to the OOB script include (SurveyProcessor) to present the next question/survey.   I still have enhancements we would like to do down the road.   But for now, I have a working product in production.   Thanks for the ideas.


View solution in original post

4 REPLIES 4

Chandresh
Tera Guru

Hi Jamie,



Hope below link will help you in your queries



Re: I am a Creator - Visual Smileys Survey - Brad Tilton


Yes, I have been here and many other similar posts numerous times. I saw


there is a bug where if the ui page is public, it won't run the processing


script (issue I ran into on my custom ui page). So I changed to a Ajax call


in my client script, nothing. I modified my desktop (legacy) one to include


a few additional multi-line text fields and changed the javascript function


name as someone else sugested, still won't post the text. Don't want to


give up, but so frustrated


On Feb 10, 2016 11:50 PM, "chandresh" <community-no-reply@servicenow.com>


Hi Jamie,



One suggestion, if your ui page is public then please make all the associated script include/client script public. Check section 4.2 of below link



Script Includes - ServiceNow Wiki


blodgjm
Giga Contributor

So, I finally resolved my issues.   Mostly it was getting a better understanding of the full process involved with the Legacy Surveys.   I ended up creating a desktop version of the survey (similar to the original Smiley but with new graphics and show/hide functionality to require more feedback based on the answer).   Then I created a second version for the mobile.   The mobile is actually multiple surveys displayed one page at a time with modifications to the OOB script include (SurveyProcessor) to present the next question/survey.   I still have enhancements we would like to do down the road.   But for now, I have a working product in production.   Thanks for the ideas.