Skip to content

Commit

Permalink
Change Beach concept to enable form saving (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatheka authored Sep 11, 2024
1 parent 57ff4ff commit 3704db8
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions configuration/ampathforms/KP_Contact.json
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@
"id": "nameBeach",
"required": "true",
"questionOptions": {
"concept": "166491AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "text"
},
"hide": {
Expand Down Expand Up @@ -791,20 +791,7 @@
"concept": "164393AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "number"
},
"validators": [
{
"type": "number"
},
{
"type": "js_expression",
"failsWhenExpression": "moment(myValue).isBefore(moment(birthdate), 'day')",
"message": "Should not be less than the date of birth."
},
{
"type": "date",
"allowFutureDates": "false"
}
],
"validators": [],
"hide": {
"hideWhenExpression": " maleKeyPop !== '162198AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && femaleKeyPop !== '162198AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
Expand All @@ -818,9 +805,6 @@
"rendering": "date"
},
"validators": [
{
"type": "number"
},
{
"type": "date",
"allowFutureDates": "false"
Expand Down

0 comments on commit 3704db8

Please sign in to comment.