Skip to content

Commit

Permalink
avniproject/avni-client#1273 - edit rule in form
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Feb 13, 2024
1 parent bd8c578 commit 8870fa8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/application/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Form extends BaseEntity {
name: "string",
formElementGroups: { type: "list", objectType: "FormElementGroup" },
decisionRule: { type: "string", optional: true },
editFormRule: { type: "string", optional: true },
visitScheduleRule: { type: "string", optional: true },
validationRule: { type: "string", optional: true },
checklistsRule: { type: "string", optional: true },
Expand Down Expand Up @@ -62,6 +63,14 @@ class Form extends BaseEntity {
this.that.decisionRule = x;
}

get editFormRule() {
return this.that.editFormRule;
}

set editFormRule(x) {
this.that.editFormRule = x;
}

get visitScheduleRule() {
return this.that.visitScheduleRule;
}
Expand Down Expand Up @@ -118,6 +127,7 @@ class Form extends BaseEntity {
"name",
"formType",
"decisionRule",
"editFormRule",
"visitScheduleRule",
"taskScheduleRule",
"validationRule",
Expand Down

0 comments on commit 8870fa8

Please sign in to comment.