Advanced Question Options Configuration (JSON)

Created by Jake Baker, Modified on Wed, 08 Nov 2023 at 12:35 PM by Jake Baker

There are some additional features relating to the creation of Questions which we've summarised in this article. In order to manage tasks and questions, you'll need the relevant permission - explained in this article: Managing Workflows - Permissions. These options utilise JSON to determine the behaviour of questions - a detailed explanation of what JSON is can be read in this support article: JSON - Question Options Explanation. Some of these configuration options will require some technical ability and training by Locata. Contact us at enquiries@locata.org.uk regarding any training requirements.


TABLE OF CONTENTS


Editing Options


All JSON options are configured within the "Options" fields on questions in the task configuration section of settings.



Larger Text Boxes


For "Text" type questions, you can add the following text to the options to adjust the size of the text box, which defaults to a single line. 


{ "inputType": "textarea", "rows": 6} 


To make the text box larger or smaller, adjust the number - currently set to "6".


Here's an example:



Making Questions Mandatory


You can make any question mandatory by entering the below options text into the options field of the question:


{"required": "true" }


Here's an example:


Changing Date Question Appearance


Date questions default to looking like this:



The above calendar is defaulting to showing the date picker in a "Years" format. Here are some other options:


Days

Use: {"calendarViewMode": "days"}


Months 

Use: {"calendarViewMode": "months"}



Decades

Use: {"calendarViewMode": "decades"}


Date Validation


Make a Question Reviewable


When Question A is "X", Make Question B Mandatory


When Question A is "X", Disable Question B






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article