Skip to content

Commit

Permalink
Catlog app- Info grey box added in Calculated expression screen Behav…
Browse files Browse the repository at this point in the history
…ior (#1679)
  • Loading branch information
PallaviGanorkar authored Nov 3, 2022
1 parent faea544 commit 4e88f68
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 0 additions & 5 deletions catalog/src/main/assets/behavior_calculated_expression.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
"code": "years"
}
}]
},
{
"linkId": "a-age-acknowledge",
"text": "Input age to automatically calculate birthdate until birthdate is updated manually",
"type": "display"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ class DemoQuestionnaireFragment : Fragment() {
infoCardText.text = getString(R.string.behavior_name_skip_logic_info)
infoCard.visibility = View.VISIBLE
}
getString(R.string.behavior_name_calculated_expression) -> {
infoCardHeader = view.findViewById(R.id.infoCardHeader)
infoCardHeader.text = args.questionnaireTitleKey
infoCardText = view.findViewById(R.id.infoCardText)
infoCardText.text = getString(R.string.behavior_name_calculated_expression_info)
infoCard.visibility = View.VISIBLE
}
else -> infoCard.visibility = View.GONE
}
setFragmentResultListener(REQUEST_ERROR_KEY) { _, bundle ->
Expand Down
3 changes: 3 additions & 0 deletions catalog/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<string
name="behavior_name_skip_logic_info"
>If Yes is selected, a follow-up question is displayed. If No is selected, no follow-up questions are displayed.</string>
<string
name="behavior_name_calculated_expression_info"
>Input age to automatically calculate birthdate until birthdate is updated manually.</string>
<string
name="behavior_name_calculated_expression"
>Calculated Expression</string>
Expand Down

0 comments on commit 4e88f68

Please sign in to comment.