adding dependsOn attribute in dynaforms
This commit is contained in:
@@ -90904,6 +90904,12 @@ FormDesigner.leftPad = function (string, length, fill) {
|
||||
type: "textarea",
|
||||
placeholder: "payload".translate()
|
||||
};
|
||||
this.dependsOn = {
|
||||
label: "dependsOn".translate(),
|
||||
value: "",
|
||||
type: "textarea",
|
||||
placeholder: "[array of fields]".translate()
|
||||
};
|
||||
this.maxLength = {label: "max length".translate(), value: 1000, type: "text", regExp: /^[0-9]+$/};
|
||||
this.formula = {label: "formula".translate(), value: "", type: "button", labelButton: "edit...".translate()};
|
||||
this.mode = {
|
||||
@@ -91268,7 +91274,7 @@ FormDesigner.leftPad = function (string, length, fill) {
|
||||
if (type === FormDesigner.main.TypesControl.text) {
|
||||
this.pf = ["type", "variable", "var_uid", "dataType", "protectedValue", "id", "name", "label", "tabIndex",
|
||||
"defaultValue", "placeholder", "hint", "ariaLabel", "required", "requiredFieldErrorMessage", "textTransform",
|
||||
"validate", "validateMessage", "maxLength", "formula", "loadDropdownOptions", "mode", "operation", "dbConnection",
|
||||
"validate", "validateMessage", "maxLength", "formula", "dependsOn", "loadDropdownOptions", "mode", "operation", "dbConnection",
|
||||
"dbConnectionLabel", "sql", "memoryCache"];
|
||||
if (this.owner instanceof FormDesigner.main.FormItem) {
|
||||
this.operation.type = "hidden";
|
||||
@@ -91291,7 +91297,7 @@ FormDesigner.leftPad = function (string, length, fill) {
|
||||
}
|
||||
if (type === FormDesigner.main.TypesControl.dropdown) {
|
||||
this.pf = ["type", "variable", "var_uid", "dataType", "protectedValue", "id", "name", "label", "tabIndex",
|
||||
"defaultValue", "placeholder", "hint", "ariaLabel", "required", "requiredFieldErrorMessage", "loadDropdownOptions", "mode", "datasource",
|
||||
"defaultValue", "placeholder", "hint", "ariaLabel", "required", "requiredFieldErrorMessage", "dependsOn", "loadDropdownOptions", "mode", "datasource",
|
||||
"dbConnection", "dbConnectionLabel", "sql", "memoryCache", "dataVariable", "options"];
|
||||
if (this.owner instanceof FormDesigner.main.GridItem) {
|
||||
this.pf.push("columnWidth");
|
||||
@@ -91346,7 +91352,7 @@ FormDesigner.leftPad = function (string, length, fill) {
|
||||
}
|
||||
if (type === FormDesigner.main.TypesControl.suggest) {
|
||||
this.pf = ["type", "variable", "var_uid", "dataType", "protectedValue", "id", "name", "label", "tabIndex",
|
||||
"defaultValue", "placeholder", "hint", "ariaLabel", "required", "requiredFieldErrorMessage", "loadDropdownOptions", "mode", "datasource",
|
||||
"defaultValue", "placeholder", "hint", "ariaLabel", "required", "requiredFieldErrorMessage", "dependsOn", "loadDropdownOptions", "mode", "datasource",
|
||||
"dbConnection", "dbConnectionLabel", "sql", "memoryCache", "dataVariable", "options", "delay", "resultsLimit",
|
||||
"forceSelection"];
|
||||
if (this.owner instanceof FormDesigner.main.GridItem) {
|
||||
|
||||
Reference in New Issue
Block a user