Allow custom labels

This commit is contained in:
Oliver 2021-06-30 01:07:57 +10:00
parent 1f75530910
commit 43f26f2c65

View File

@ -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;