Form Builder + put marker on image

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
sage12
New Member
New Member
Posts: 7
Joined: Wed Aug 08, 2018 9:19 am

Form Builder + put marker on image

Post by sage12 »

For a client I made a form which is used on each project to report problems.

The client is now asking if he can put an image in each project form (form builder should read this from page data). on the image the user should be able to put a marker and send this with the form.


Would be nice if someone here could point me in the right direction.

Any help is appreciated.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Form Builder + put marker on image

Post by velden »

I think you could use javascript to preview the image, manipulate it (add the marker), convert it to a DataURL and write that to a hidden text field.

Then in FormBuilder submit the data to a UDT to convert the DataURL to a file and save it somewhere on the server.

Somehow you'd need to save the new filename/path to be able to send an email to the website owner with the image attached. Another option would be to store the submitted form data to a LISE instance. If showing the data on a (protected) front end page using LISE you might even skip the conversion of the dataURL to a saved image. Just use the dataURL for the <img src="[dataURL]" ... /> tag.

Disclaimer: I didn't really check anything of the above but think you now have some keywords to google :-)
Post Reply

Return to “Modules/Add-Ons”