Announcement

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

    Issue with DynamicForm Not Updating Bound DataSource Fields on Submit

    Hi all,
    I'm working with Smart GWT and have a `DynamicForm` bound to a `DataSource`. Most of the UI renders as expected, but I'm encountering a problem where certain fields particularly those modified via custom logic or programmatically set do not get included in the `DSRequest` sent on form submission.
    I have a `DynamicForm` bound to a `DataSource`.
    Some fields are hidden and updated via `form.setValue("fieldName", value)` in response to user actions.
    When I call `form.saveData()`, those programmatically-set values are missing from the request payload, even though `form.getValue("fieldName")` returns the correct data.
    Is there a recommended way to ensure that hidden or programmatically-set values are included in the final DSRequest? Any help or guidance would be much appreciated.
    Crazy Cattle 3D
    Last edited by willywonka; 22 Apr 2025, 07:14.

    #2
    saveData() includes everything in form.getValues(). The only way to exclude a field would be to set shouldSaveValue:false on the item.

    If you think there’s a bug here, we will need a standalone (ready-to-run) test case to look into it.

    Comment

    Working...
    X