Skip to Content

Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
32 Views

I wanted to add a new feature into survey module, which is adding an option in the questions where the user can upload a file or a picture but I'm having a problem when I run the survey it doesn't show the upload button. Can anyone please walk me through the steps on how to add this feature smoothly?

Avatar
Discard
Best Answer

Hi,

First you need to define a binary field in the python file.

field_name = fields.Binary(string=’give a name for this field’ )

And you should give a view in the XML file.

https://ibb.co/wJW5Jd1

Once you define the field, you will have a button near the field to Upload your file.

Regards

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!