Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DynamicForm not updating values programmatically

    Hi everyone,
    I'm quite new to SmartClient (been using it for about 2 months), and this is my first post here. I'm currently facing an issue where I try to update the values of a DynamicForm programmatically, but the changes don't reflect in the UI as expected.
    Here’s a simplified version of what I’m doing:
    Code:
    myForm.setValues({
      name: "John",
      email: "john@example.com"
    });
    But the form still shows the previous values, or sometimes only partially updates. I've checked that the field names match. Is there a specific method I should call to force a redraw or refresh? Or am I missing something with how valueMaps or dataSources affect this?
    Any help or pointers would be greatly appreciated.
    Thanks in advance!
    Slope Game
    Last edited by lucasdowman; 2 Aug 2025, 03:47.

    #2
    That’s already the correct API and you can verify that it works by trying out similar code in any sample. So you probably have other code in your app that breaks this baseline functionality - simplify until you find it.

    Comment

    Working...
    X