Question T6152
Visible to All Users

Remove descriptions inside dynamic panel

created 4 years ago

Hey guys,

I am trying to figure out the best way to remove descriptions inside a dynamic panel from the the pdf. Its only on panels nested inside a dynamic panel that write out. Thanks.

Answers approved by surveyjs Support

created 4 years ago

Hello,

Here is live sample how to remove descriptions of dynamic panel before export to PDF. You can modify this approach in case this is not exactly what you want
Clipboard-File-1.png

Thanks, Alex
SurveyJS Team

    Show previous comments (1)

      Hello,

      You can use panels property of panel dynamic question to traverse all panels. Then use elements property of each panel and filter only nested panels. Then clear description of nested panel before export to PDF. Here is updated live sample of this approach. You can also modify this for recursive case

      Clipboard-File-1.png

      Thanks, Alex
      SurveyJS Team

        That worked, Thanks for the help. I have another question with the writing to pdf inside the dynamic panel but will create a new ticket.

          You are welcome!