Hi
Have a dialog. Is it possible to reset parts of it, or is the reset function all or nothing?
The dialog asks about different respiratory impairments, say asthma, sleep apnea and bronchitis. I have experimented with creating a separate dialog for each impairment but seems it works more closely to the effect I need if they are all in one. Each impairment in this dialog sits in its own tab pane. At the top of the page are a series of yes / no radio buttons, asking if the person has ever had the various impairments. The yes / no questions are a business requirement. A yes opens the reflex questions for that impairment. Have used lots of Show / Hide expressions.
The challenge is when a person ticks yes to say both asthma and apnea, answers all the questions but then changes his mind and turns the asthma button to no.
If this happens then I need to delete the responses in the asthma questions. If I use the form reset function it removes the answers in all the impairments. So guess what I'm looking for is a slick method to remove all answers that fall inside a particular tab pane.
I can code a delete for each reflex question individually
var hasAsthma = {dialog.Object}.getValue('ASTHMA');
if (hasAsthma == 'No') {
{dialog.Object}.setValue('AsthmaFirst', '');
}
but was wondering whether there is a quicker way
Is this possible?
Thank you
Have a dialog. Is it possible to reset parts of it, or is the reset function all or nothing?
The dialog asks about different respiratory impairments, say asthma, sleep apnea and bronchitis. I have experimented with creating a separate dialog for each impairment but seems it works more closely to the effect I need if they are all in one. Each impairment in this dialog sits in its own tab pane. At the top of the page are a series of yes / no radio buttons, asking if the person has ever had the various impairments. The yes / no questions are a business requirement. A yes opens the reflex questions for that impairment. Have used lots of Show / Hide expressions.
The challenge is when a person ticks yes to say both asthma and apnea, answers all the questions but then changes his mind and turns the asthma button to no.
If this happens then I need to delete the responses in the asthma questions. If I use the form reset function it removes the answers in all the impairments. So guess what I'm looking for is a slick method to remove all answers that fall inside a particular tab pane.
I can code a delete for each reflex question individually
var hasAsthma = {dialog.Object}.getValue('ASTHMA');
if (hasAsthma == 'No') {
{dialog.Object}.setValue('AsthmaFirst', '');
}
but was wondering whether there is a quicker way
Is this possible?
Thank you
Comment