Editor Widget Manual/Auto Update

1797
3
Jump to solution
02-04-2016 01:02 PM
HamishKingsbury1
Occasional Contributor

Hi All

What I currently have is a (slightly) customized WAB Editor Widget. I've added the ability to upload an image to the server and then populate a couple of fields within a feature edit window. The image below shows the workflow...4iw2c1oz.bmp

Once the image is uploaded, a user can click either 'Use as photo' or 'Use as closeup'. These buttons will then update the associated fields with the URL to the image/thumbnail.

What i've noticed is that edits are only saved when the text field is clicked on. So if the main picture and closeup picture were changed, then the user would need to click in each of the four fields to save the changes.

What i'm wanting to achieve is that when the user clicks either the 'Use as photo' or 'Use as closeup' button all changes made to the feature are saved. How would I go about achieving this?

Cheers

Hamish

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Hamish,

   Have you tried to set focus() on the field and then blur()?

View solution in original post

3 Replies
RebeccaStrauch__GISP
MVP Esteemed Contributor

tagging Web AppBuilder Custom Widgets​   (just a little more specific location)

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Hamish,

   Have you tried to set focus() on the field and then blur()?

HamishKingsbury1
Occasional Contributor

Excellent! that does the trick. Cheers

0 Kudos