|
ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Additional information > Fields > Setting up a field > Specifying the possible choices for a choice field Specifying the possible choices for a choice field
In briefA choice field is used when the field can only contain one of a predetermined set of values. For example, 'Gender' would be a choice field with the choices being 'Male' and 'Female' (and possibly 'Unknown'). You specify the choices for such a field by entering them as a comma-separated list in the space titled Choices on the field's settings page - for example: Male,Female DetailsYou must enter at least one choice for a choice field. The different choices are entered as a single list with commas between the different possibilities. You can include spaces with the commas if you like; they're just ignored. Below are some examples of valid choice lists:
Take care to avoid a choice which contains a comma, as it will be considered to be two choices. When you make an entry into a choice field in the experiment, ANY-maze will automatically complete your entry when it uniquely matches a choice. For example, if you typed 'm' into a 'Male, Female' field, then ANY-maze would complete the entry with 'Male' because none of the other possibilities begins with an 'm'. However, if you typed '1' into a field whose choices were those given in the third example above, then the entry wouldn't be automatically completed because two possibilities begin with a '1'. However, if you then typed a '0', the entry would only match the choice '10-20 months' so this would automatically be completed. You may wish to bear this in mind when you are defining the names of the possible choices. RestrictionsNo single choice can contain more than 80 characters, and the total length of all the choices can't exceed 1200 characters.
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T0607 |