Background image on Ink Sketch?
You can do it like that (past the code to the JS editor of the form):
$('#fd_signature-0').find('canvas').css('background', "url('http://www.w3schools.com/cssref/paper.gif')");
The url would be the address of your picture, fd_signature-0 the id of the signature control (it's automatically assigned, the number at the end is automatically incremented). Note that the background image won't be added to the resulting image that is saved.
$('#fd_signature-0').find('canvas').css('background', "url('http://www.w3schools.com/cssref/paper.gif')");
The url would be the address of your picture, fd_signature-0 the id of the signature control (it's automatically assigned, the number at the end is automatically incremented). Note that the background image won't be added to the resulting image that is saved.
Sure, you can keep the markings. The image that you will use as the background image you will obviously have as well. If you only want to display those markings in the ink sketch control you can keep doing that by applying the background image. If you need to save the image somewhere you can do that and you can compile the two images together via some tool in an automatic way or manually.
Ok
Got the background showing fine now on the edit form so can quite neatly mark the image up as needed.
However, althought I'm using the same script on the Display form to show the background image in the same way as the Edit form, it is only showing the markings that were made previosuly in edit mode. The background image is not there in Display Mode.
$('#fd_signature-0').find('canvas').css('background', "url('https://Body%20Map.jpg')"); (Full URL not shown)
Can you advise how to resolve this?
Got the background showing fine now on the edit form so can quite neatly mark the image up as needed.
However, althought I'm using the same script on the Display form to show the background image in the same way as the Edit form, it is only showing the markings that were made previosuly in edit mode. The background image is not there in Display Mode.
$('#fd_signature-0').find('canvas').css('background', "url('https://Body%20Map.jpg')"); (Full URL not shown)
Can you advise how to resolve this?
Just for the display form change the JS code to:
$('.inksketch').css('background', "url('http://www.w3schools.com/cssref/paper.gif')");
Where 'inksketch' is a CSS class name that you need to set in Forms Designer for the ink sketch control.
$('.inksketch').css('background', "url('http://www.w3schools.com/cssref/paper.gif')");
Where 'inksketch' is a CSS class name that you need to set in Forms Designer for the ink sketch control.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 10 guests