Allow custom labels
This commit is contained in:
parent
1f75530910
commit
43f26f2c65
|
|
@ -291,6 +291,11 @@ function constructFormBody(fields, options) {
|
|||
fields[field].help_text = field_options.help_text;
|
||||
}
|
||||
|
||||
// Custom label
|
||||
if (field_options.label) {
|
||||
fields[field].label = field_options.label;
|
||||
}
|
||||
|
||||
// Field prefix
|
||||
if (field_options.prefix) {
|
||||
fields[field].prefix = field_options.prefix;
|
||||
|
|
|
|||
Loading…
Reference in New Issue