I have data elements of value type: ‘Yes/No’ with the attributes below: What would be the custom form code for setting the default value at runtime to ‘NO’?
in this case I would have used the data element type “Yes Only”. This will “default” to no / answer and present a check box. This will be equivalent to what you are doing - remember that even if you set the drop-down to No the system will not save a “No” to the database, as that requires the user to actually select No.
regards,
Lars
···
On Wed, Nov 12, 2014 at 10:55 AM, Sam Kasozi kasozis@gmail.com wrote:
Hi all,
I have data elements of value type: ‘Yes/No’ with the attributes below: What would be the custom form code for setting the default value at runtime to ‘NO’?
Hi Lars,
that would be a good alternative, however taking on that option will imply
that we will not be able to differentiate between the 'No' and 'Missing'.
regards.
Sam Kasozi
Information Systems Consultant
HISP Uganda | GHSI - Uganda MOH - PH Emergency Operation Center
+256 788 993565 | +256 757 662752
kasozis@gmail.com | skasozi@pheoc.go.ug <kasozis@gmail.com> | Skype:
sam.kasoziug
···
On Wed, Nov 12, 2014 at 2:39 PM, Lars Helge Øverland <larshelge@gmail.com> wrote:
Hi Sam,
in this case I would have used the data element type "Yes Only". This will
"default" to no / answer and present a check box. This will be equivalent
to what you are doing - remember that even if you set the drop-down to No
the system will not save a "No" to the database, as that requires the user
to actually select No.
regards,
Lars
On Wed, Nov 12, 2014 at 10:55 AM, Sam Kasozi <kasozis@gmail.com> wrote:
Hi all,
I have data elements of value type: 'Yes/No' with the attributes below:
What would be the custom form code for setting the default value at runtime
to 'NO'?