Posted: 26 Apr 2017 12:52 EDT Last activity: 9 May 2017 5:05 EDT
Customize the breadcrumbs to show question(flowname) and answer in Pega Survey
We are using the Pega's OOTB, FormNavigation7 (Rule-Obj-HTML) to show breadcrumbs. We understand that the text shown on breadcrumbs are basically the flowname. In Pega survey we have "Question" shapes which are internally implemented as subflow by design so these are also displayed in breadcrumbs. We understand that for Question subflows, the questionname (which has same name as subflow) is displayed in the breadcrumbs.
Is it possible to configure the breadcrumbs to show both question and answer than just showing the question (subflow) name? For e.g. consider a question shape having below properties in the flow
QuestionName = LocateBBU
Question Description = Did the customer locate BBU?
Answer = yes or no
Currently, Pega’s OOTB script display QuestionName as the breadcrumb text. We would like to know the possibility of displaying QuestionName[appended with Answer selected] instead. For e.g. LocateBBUYes for Yes and LocateBBUNo for No?
The requirement you requested is not supported OOTB pega survey as it requires extensions/support from flow process engine module and it is not strait forward.I would like you to try below things which might help you to achieve your use case
As you might know when flow is ran, all the flow details are stored in pyFlowData page within which pySteps page list is populated with each step details like step label ,etc. and these details are used to show breadcrumbs at run time. pyflowDataPage clipboard page is built in activity GetFlowData which has extension activity pyGetFlowDataDefaults, which you can override and update the step label according to your requirement [QuestionName + Answer]. Answer can be set using the value from .Answer property on pyWorkPage.Question(QuestionName) page. QuestionName is also available in pysteps page provided if question smart shape label is not updated as once question is selected after adding question smart shape we default to question name .