excludeif function in HTML form design to disable sections based on obs value e.g Pregnat? Yes No options and EDD not displayed if Pregant answer is No
Is this a question or you are reporting a bug? Can you try to be as clear as possible?
Dear Daniel, This is an implementation of HTML
I am trying to implement “excludeif” tag in html forms over a question value coded questions to exclude particular questions
And are you facing any challenges with that?
Yes iam, i tried reading the HTML guide for it but its not helping me? as this works for patient attributes like gender
<
htmlform
>
<
table
border
=
"0"
width
=
"100%"
>
<
tr
><
td
><
includeIf
logicTest
=
"GENDER = F"
>This shows a logic test for a woman</
includeIf
> </
td
></
tr
>
<
tr
><
td
><
includeIf
velocityTest
=
"$patient.gender == 'F' "
>This shows a velocity test for a woman</
includeIf
> </
td
></
tr
>
<
tr
><
td
><
excludeIf
logicTest
=
"GENDER = F"
>This won't show for a logic test for a woman</
excludeIf
> </
td
></
tr
>
<
tr
><
td
><
excludeIf
velocityTest
=
"$patient.gender == 'F' "
>This won't show for a velocity test for a woman</
excludeIf
> </
td
></
tr
>
</
table
>
</
htmlform
>