Page 1 of 1

Ink Sketch not present on Display form if no ink

Posted: 15 Aug 2017
by smithme
Requirement:

My form allows the user to add an attachment to a list item, that is then made into the background of an Ink Sketch for them to draw on it. This photo needs to show up in the Display and Edit forms.

Problem:

If the user attaches as photo but makes no notes on the photo (i.e. the didn't draw anything on the Ink Sketch control), when viewing the Display for the photo doesn't show up because the Ink Sketch control isn't rendered, because there is no ink (i.e. the memo field for the Ink Sketch control is null).

Help:

Can the Ink Sketch control be rendered in the Display form even if there is no value for the Ink Sketch control?

Re: Ink Sketch not present on Display form if no ink

Posted: 16 Aug 2017
by Nikita Kurguzov
You can add Image control to the Form which would retrieve the same file and then create an if condition for when the Form opens. If it opens with empty value for the Ink Sketch, then display Image, else display Ink Sketch. Should be relatively easy to implement.

Alternatively, you can manually assing certain default value to the Ink Sketch, so it always displays, even if it looks empty.

Re: Ink Sketch not present on Display form if no ink

Posted: 16 Aug 2017
by smithme
Nikita Kurguzov wrote:
16 Aug 2017
You can add Image control to the Form which would retrieve the same file and then create an if condition for when the Form opens. If it opens with empty value for the Ink Sketch, then display Image, else display Ink Sketch. Should be relatively easy to implement.

Alternatively, you can manually assing certain default value to the Ink Sketch, so it always displays, even if it looks empty.

Thank you.