Input element on a Popup initial content won't get updated automatically

the input element on a Popup initial content won’t get updated after “Make change”, user has to reload the page to see thenew value.


I expect the changed value can refresh on screen immediately !

I have tried to replicate your behavior, but it seems to be working. Or I am missing something big. See the demo below:
chrome_PJn4fZ7gAQ

  • The group (bordered rectangle) has a thing in it and this is set when page is loaded:

  • The input updates the value of it when the input value is changed by make a change to a thing:

  • The repeating group entry auto-updated.

1 Like

image

I did not use Custom state “Item” in a group. why a custom state is needed?

I think I got your problem. You want the input’s value to be updated automatically with the value of the thing (which is the truncated version of the input’s value). Because the input’s value is not updated. Because it is the initial content, not the actual content.

If you reset the relevant inputs in the input value changed, it looks like working in my case. The input needs to lose the focus though.

See the demo:
chrome_MeTcT1Geb4

2 Likes

The reason why you need to do as @hergin mentions for resetting the value, is because when a user adds a value to an input element, that becomes the content…the ‘initial content’ is just what is there to begin with (ie: initial), so once the user changes the value of the input, and then you make changes to the database field, which is not the same value as the user added (because of the truncated), the content of the input is still what the user put in, because when the user changes the value, the initial content is lost, and the content is then what the user added to the input.

It has confused me in the past as well.

2 Likes

I see… “the initial content is lost” ,
the initial content is actually NOT linked to anything.
Thank you for point that out!

YES! “reset the relevant inputs” works! Thank you! Thank you!

This topic was automatically closed after 70 days. New replies are no longer allowed.