Question T15574
Visible to All Users

Tabulator - Display a custom link for uploaded files

created 2 years ago (modified 2 years ago)

[Ticket cloned from T15560: Ability to customize column rendering when display survey answer list on table]

Hi team,

I'm using the Tabulator table to display survey result records (the tutorial link is Export Survey Results to a CSV File | Form Builder for React - SurveyJS). Does SurveyJS library support customizing the display of columns? For example:

  • Customize the link of answers of the file question by using displaying custom link instead rendering base64 link (Suppose that file answer is stored as link to external file service instead of base64 text in JSON)

If the library does not have the built-in support, can we get the reference to the Tabulator instance to do the customization instead?

Thanks

Answers approved by surveyjs Support

created 2 years ago

Hello Le,
You can disable the QuestionFileModel.storeDataAsText property and handle the survey.onUploadFiles event to save uploaded files to a specified storage and return an URL as a file contents. As a result, survey.data will store file URLs instead of Base64 encoded files. A SurveyJS Tabulator will display these URLs allowing users to click them and download files.

Refer to the following demo to learn how to implement the survey.onUploadFiles function to upload files to a storage and save their URLs: File Upload.

Let me know if you have any further questions.

Thanks

We hope you enjoyed the level of service you received. If so, we would love if you could leave your feedback on SurveyJS page at g2.com. As we’re building our business, every review helps build credibility for future customers and your feedback would be greatly appreciated.