QField plugin- Attachment, limit input 'modes'

When adding an attachment using the attachment widget, the user is presented with a menu of attachment ‘subtypes’ in QField (i.e. Take a photo, Take a video…..Draw a sketch)

Is it possible to limit this list so that, for example, if in my case I want to use an attachment field/widget to record a signature, I can immediately just go to the ‘Draw a sketch’ option? Or, if I was using a particular field to link to a video for example, I can only show ‘Take a video’ and ‘Attach a file’ etc

Hi @Tim_Barnes , you can configure the field in such a way that by default you have photo, video or voice and document… for drawing a sketch it is not possible

Thanks for your reply beanzmo!

Is it possible to bypass this menu entirely and invoke the ‘sketch’ directly in plugin code?

Hi!

You should be able to load the QFieldSketcher module similarly to how the Snap! plugin loads the camera module.
The functions and signals you can use might differ, but the finished signal should be the same.

1 Like