Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2991 Visualizzazioni

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
Abbandona

See how to use binary field: https://goo.gl/2JAxhD

Autore

Thank you soo much!!! this was really helpful ^^

Risposta migliore

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
Abbandona
Autore Risposta migliore

Thank you sooo much ^^

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 25
952
1
feb 24
1436
2
apr 25
3286
0
lug 23
1552
1
apr 23
9367