Ink Sketch not present on Display form if no ink
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?
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?
City of Nampa
Idaho
United States of America
Idaho
United States of America
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 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.
Alternatively, you can manually assing certain default value to the Ink Sketch, so it always displays, even if it looks empty.
Cheers
Nikita Kurguzov wrote: ↑16 Aug 2017You 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.
City of Nampa
Idaho
United States of America
Idaho
United States of America
-
- Information
-
Who is online
Users browsing this forum: No registered users and 5 guests