Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Best practice: Forcing a Form with just DefaultValues to save / valuesHaveChanged=Yes

$
0
0
Hi Isomorphic,

I'm in a situation where I have a form I show on selecting a Tab. The FormItems have default values. When the user sees the default values and accepts them by just not changing them I want to treat the form as "dirty"/have form.valuesHaveChanged() return true.

How is this best done? There is no method setValuesHaveChanged().

Related question: Should setting a value to a HiddenItem via hiddenItem.setValue(x) make form.valuesHaveChanged() return true?

Thank you & Best regards
Blama

Viewing all articles
Browse latest Browse all 4756

Trending Articles