FormItem setFieldTitle method

24 views Asked by At

Does DynamicForm or FormItem have a method to set a field title?

Currently I'm doing something like this

var fields = myForm.fields;
fields[0].title = "a brand new title";
myForm.setFields(fields);
1

There are 1 answers

0
stackoverfloweth On BEST ANSWER

The answer according to Isomorphic on SmartClient Forum

A valid way to do this would be formItem.setProperty("title", newTitle) and then item.redraw().