How to publish a questionnaire depending on the layout type ?
I'd like to seek an advice regarding the idea explained in "Implementing Vendor Portal" documents provided as a part of FFTH session.
I'm trying to implement multiple layouts as explained in the document to manage different versions of questionnaire.
However the custom object seems not working.
Could anyone give me an advice if there is anything to be considered?
I've add one calculation field to specify the portal ID and updated only 2 lines in Custom Objects code as below.
#1 commented out the existing LayoutID line
// LayoutId: 857, //Portal Layout ID 843 Type1(856) Type2(857)
#2 add below line with id of calculated field (24547)
TPPConfig.jsonRequestBody.LayoutId = $.parseJSON($('input[id*="24547"]').val());
When I click Publish button, it becomes [PUBLISHING..] and does not complete.
Will anyone be able to provide the sample code ?