I want to disable questions based on anonymous or not. So the idea is to show a question 'name' and 'email'. Then I show a checkbox question with a single choice 'anonymous'.
How can I remove the question from this checkbox?
Code{
type: 'panel',
name: 'introduction_panel',
elements: [
{
type: 'text',
name: 'contact_name',
title: strWhatIsYourName,
hideNumber: true,
isRequired: true,
visibleIf: '{contact_is_anonymous} empty'
},
{
type: 'text',
inputType: 'email',
name: 'contact_email',
title: strWhatIsYourEmail,
isRequired: true,
hideNumber: true,
visibleIf: '{contact_is_anonymous} empty'
},
{
type: 'checkbox',
name: 'contact_is_anonymous',
hideNumber: true,
choices: [
{
value: 'true',
text: strAnonymous
}
]
}
]
}