Skip to main content

Yes No Question

The yesNoQuestion is a special question template that represents a question with binary CTA. It includes intro text, image and title, a template should include at least one of the previous properties.

Step Config

KeyDescriptionIs Optional?
typeShould be yesNoQuestion to differs from other steps.Required
stepIdUnique step identifier.Required
backgroundColorThe background color of the page.Optional
shouldFadeInWhether the step should fadeIn animation on enter.Optional
shouldFadeOutWhether the step should fadeOut animation on leave.Optional
textColorColor of the entire step text.Optional
introTextIntro text to show on top of the step.Required if image and title are not added.
imageText to show below the progress bars.Required if introText and title are not added.
imageWidthWidth of the image.Optional
imageHeightHeight of the imageOptional
titleThe main step question.Required if introText and image are not added.
ctasThe CTAs to be added. Max 2 CTAs can be addedRequired

CTAs Config

KeyDescriptionIs Optional?
textCTA text.Required
valueCTA value.Required
textColorCTA text color.Optional
backgroundColorThe background color of the CTA.Required
hoverBackgroundColorThe background color of the CTA on hover, will default to 20% darker shade than backgroundColor.Optional

Example

YesNoQuestion
{
"id": "mind_app_id",
"journeyId": "SaDJUYAjRv",
"language": "en",
"appId": "co.thefab.mind",
"seo": {
"title": "Lumiere",
"favicon": "https://c.thefab.co/web-onboarding/mind/mind-favicon.png",
"description": "Manage stress and anxiety through self-care practices and empowering affirmations. Embark on a journey of self-love."
},
"steps": [
{
"stepId": "step_id_1",
"type": "yesNoQuestion",
"textColor": "#251C93",
"introText": "DO YOU RELATE TO THE FOLLOWING?",
"title": "How much sleep do you usually get at night?",
"image": "https://storage.googleapis.com/c.thefab.co/test-onboarding-images/placeholder.png",
"ctas": [
{
"text": "Yes",
"value": "yes",
"textColor": "#FFFFFF",
"backgroundColor": "#3425B8"
},
{
"text": "No",
"value": "no",
"textColor": "#FFFFFF",
"backgroundColor": "#3425B8"
}
]
},
{
"stepId": "step_id_2",
"type": "yesNoQuestion",
"backgroundColor": "#19223E",
"introText": "DO YOU RELATE TO THE FOLLOWING?",
"textColor": "#E7E9F9",
"title": "How much sleep do you usually get at night?",
"imageWidth": 140,
"imageHeight": 150,
"image": "https://storage.googleapis.com/c.thefab.co/test-onboarding-images/sheep%20sleep.png",
"ctas": [
{
"text": "Yes",
"value": "yes",
"textColor": "#FFFFFF",
"backgroundColor": "#E2B3B8"
},
{
"text": "No",
"value": "no",
"textColor": "#FFFFFF",
"backgroundColor": "#E2B3B8"
}
]
}
],
"logic": []
}