﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 6  » Force capitalization</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 26 May 2026 02:18:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Force capitalization</title><link>https://forums.millisecond.com/Topic41002.aspx</link><description>Hi,&lt;br/&gt;I am using the textbox function and am trying to constrain the answers to be capitalized.&lt;br/&gt;This is the current code, but I want to make it so that unless the answer (their first name) is capitalized, the participants cannot move on.&lt;br/&gt;How would I make this happen?&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox name&amp;gt;&lt;br/&gt;/ caption = "Please enter your first name.&lt;br/&gt;Be mindful of capitalization."&lt;br/&gt;/ txcolor = dimgray&lt;br/&gt;/ position = (35%, 35%)&lt;br/&gt;/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)&lt;br/&gt;/ textboxsize = (25,5)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 27 Jun 2025 20:30:01 GMT</pubDate><dc:creator>20jkim2</dc:creator></item><item><title>RE: Force capitalization</title><link>https://forums.millisecond.com/Topic41006.aspx</link><description>&lt;blockquote data-id="41005" class="if-quote-wrapper" unselectable="on" data-guid="1751056064228" contenteditable="false" id="if_insertedNode_1751056062747"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41005" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="41005" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="41005" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/27/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41005"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="41004" class="if-quote-wrapper" unselectable="on" data-guid="1751056064228" contenteditable="false" id="if_insertedNode_1751055289661"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41004" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="41004" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="41004" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;20jkim2 - 6/27/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41004"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="41003" class="if-quote-wrapper" unselectable="on" data-guid="1751056064228" contenteditable="false" id="if_insertedNode_1751055188768"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41003" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="41003" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="41003" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/27/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41003"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="41002" class="if-quote-wrapper" unselectable="on" data-guid="1751056064228" contenteditable="false" id="if_insertedNode_1751054734037"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41002" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="41002" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="41002" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;20jkim2 - 6/27/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41002"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;I am using the textbox function and am trying to constrain the answers to be capitalized.&lt;br/&gt;This is the current code, but I want to make it so that unless the answer (their first name) is capitalized, the participants cannot move on.&lt;br/&gt;How would I make this happen?&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox name&amp;gt;&lt;br/&gt;/ caption = "Please enter your first name.&lt;br/&gt;Be mindful of capitalization."&lt;br/&gt;/ txcolor = dimgray&lt;br/&gt;/ position = (35%, 35%)&lt;br/&gt;/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)&lt;br/&gt;/ textboxsize = (25,5)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="41002"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You could write a regular expression to force capitalization and use that in /mask. However, the much friendlier way is to simply allow participants to enter their first name however they want and then apply normalization to the response (e.g. toLower() followed by capitalize()).&lt;a class="if-quote-goto quote-link" href="#" data-id="41003"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Sorry, I am a beginner to Inquisit, so I'm not sure how to do what you suggested. Could you tell me how to code it&lt;a class="if-quote-goto quote-link" href="#" data-id="41004"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;[code]&amp;lt;block exampleBlock&amp;gt;&lt;br/&gt;/ trials = [1=pageOne; 2=pageTwo]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveyPage pageOne&amp;gt;&lt;br/&gt;/ questions = [1=name]&lt;br/&gt;/ showPageNumbers = false&lt;br/&gt;/ showQuestionNumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox name&amp;gt;&lt;br/&gt;/ caption = "Please enter your first name."&lt;br/&gt;/ txcolor = dimgray&lt;br/&gt;/ position = (35%, 35%)&lt;br/&gt;/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)&lt;br/&gt;/ textboxsize = (25,5)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveyPage pageTwo&amp;gt;&lt;br/&gt;/ caption = "Raw input: &amp;lt;%textbox.name.response%&amp;gt;&lt;br/&gt;Normalized: &amp;lt;%capitalize(toLower(textbox.name.response))%&amp;gt;"&lt;br/&gt;/ showPageNumbers = false&lt;br/&gt;/ showQuestionNumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;Given that you are new to working wiht Inquisit syntax, please work through the Programmer's Manual: &lt;a href="https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf"&gt;&lt;a href="https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf"&gt;https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="41005"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;And if you prefer to force the first letter to be entered capitalized instead of doing normalization after the fact, you can do:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;textbox name&amp;gt;&lt;br/&gt;/ caption = "Please enter your first name."&lt;br/&gt;/ mask = ^[A-Z].*&lt;br/&gt;/ txcolor = dimgray&lt;br/&gt;/ position = (35%, 35%)&lt;br/&gt;/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)&lt;br/&gt;/ textboxsize = (25,5)&lt;br/&gt;&amp;lt;/textbox&amp;gt;[/code]</description><pubDate>Fri, 27 Jun 2025 20:30:01 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Force capitalization</title><link>https://forums.millisecond.com/Topic41005.aspx</link><description>&lt;blockquote data-id="41004" class="if-quote-wrapper" unselectable="on" data-guid="1751055290790" contenteditable="false" id="if_insertedNode_1751055289661"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41004" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="41004" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="41004" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;20jkim2 - 6/27/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41004"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="41003" class="if-quote-wrapper" unselectable="on" data-guid="1751055290790" contenteditable="false" id="if_insertedNode_1751055188768"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41003" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="41003" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="41003" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/27/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41003"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="41002" class="if-quote-wrapper" unselectable="on" data-guid="1751055290790" contenteditable="false" id="if_insertedNode_1751054734037"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41002" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="41002" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="41002" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;20jkim2 - 6/27/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41002"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;I am using the textbox function and am trying to constrain the answers to be capitalized.&lt;br/&gt;This is the current code, but I want to make it so that unless the answer (their first name) is capitalized, the participants cannot move on.&lt;br/&gt;How would I make this happen?&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox name&amp;gt;&lt;br/&gt;/ caption = "Please enter your first name.&lt;br/&gt;Be mindful of capitalization."&lt;br/&gt;/ txcolor = dimgray&lt;br/&gt;/ position = (35%, 35%)&lt;br/&gt;/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)&lt;br/&gt;/ textboxsize = (25,5)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="41002"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You could write a regular expression to force capitalization and use that in /mask. However, the much friendlier way is to simply allow participants to enter their first name however they want and then apply normalization to the response (e.g. toLower() followed by capitalize()).&lt;a class="if-quote-goto quote-link" href="#" data-id="41003"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Sorry, I am a beginner to Inquisit, so I'm not sure how to do what you suggested. Could you tell me how to code it&lt;a class="if-quote-goto quote-link" href="#" data-id="41004"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;[code]&amp;lt;block exampleBlock&amp;gt;&lt;br/&gt;/ trials = [1=pageOne; 2=pageTwo]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveyPage pageOne&amp;gt;&lt;br/&gt;/ questions = [1=name]&lt;br/&gt;/ showPageNumbers = false&lt;br/&gt;/ showQuestionNumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox name&amp;gt;&lt;br/&gt;/ caption = "Please enter your first name."&lt;br/&gt;/ txcolor = dimgray&lt;br/&gt;/ position = (35%, 35%)&lt;br/&gt;/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)&lt;br/&gt;/ textboxsize = (25,5)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveyPage pageTwo&amp;gt;&lt;br/&gt;/ caption = "Raw input: &amp;lt;%textbox.name.response%&amp;gt;&lt;br/&gt;Normalized: &amp;lt;%capitalize(toLower(textbox.name.response))%&amp;gt;"&lt;br/&gt;/ showPageNumbers = false&lt;br/&gt;/ showQuestionNumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;Given that you are new to working wiht Inquisit syntax, please work through the Programmer's Manual: &lt;a href="https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf"&gt;https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf&lt;/a&gt;&lt;br/&gt;</description><pubDate>Fri, 27 Jun 2025 20:16:49 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Force capitalization</title><link>https://forums.millisecond.com/Topic41004.aspx</link><description>&lt;blockquote data-id="41003" class="if-quote-wrapper" unselectable="on" data-guid="1751055190081" contenteditable="false" id="if_insertedNode_1751055188768"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41003" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="41003" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="41003" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/27/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41003"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="41002" class="if-quote-wrapper" unselectable="on" data-guid="1751055190081" contenteditable="false" id="if_insertedNode_1751054734037"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41002" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="41002" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="41002" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;20jkim2 - 6/27/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41002"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;I am using the textbox function and am trying to constrain the answers to be capitalized.&lt;br/&gt;This is the current code, but I want to make it so that unless the answer (their first name) is capitalized, the participants cannot move on.&lt;br/&gt;How would I make this happen?&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox name&amp;gt;&lt;br/&gt;/ caption = "Please enter your first name.&lt;br/&gt;Be mindful of capitalization."&lt;br/&gt;/ txcolor = dimgray&lt;br/&gt;/ position = (35%, 35%)&lt;br/&gt;/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)&lt;br/&gt;/ textboxsize = (25,5)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="41002"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You could write a regular expression to force capitalization and use that in /mask. However, the much friendlier way is to simply allow participants to enter their first name however they want and then apply normalization to the response (e.g. toLower() followed by capitalize()).&lt;a class="if-quote-goto quote-link" href="#" data-id="41003"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Sorry, I am a beginner to Inquisit, so I'm not sure how to do what you suggested. Could you tell me how to code it</description><pubDate>Fri, 27 Jun 2025 20:14:23 GMT</pubDate><dc:creator>20jkim2</dc:creator></item><item><title>RE: Force capitalization</title><link>https://forums.millisecond.com/Topic41003.aspx</link><description>&lt;blockquote data-id="41002" class="if-quote-wrapper" unselectable="on" data-guid="1751054734794" contenteditable="false" id="if_insertedNode_1751054734037"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41002" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="41002" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="41002" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;20jkim2 - 6/27/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41002"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;I am using the textbox function and am trying to constrain the answers to be capitalized.&lt;br/&gt;This is the current code, but I want to make it so that unless the answer (their first name) is capitalized, the participants cannot move on.&lt;br/&gt;How would I make this happen?&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox name&amp;gt;&lt;br/&gt;/ caption = "Please enter your first name.&lt;br/&gt;Be mindful of capitalization."&lt;br/&gt;/ txcolor = dimgray&lt;br/&gt;/ position = (35%, 35%)&lt;br/&gt;/ fontstyle = ("Arial", 2%, true, false, false, false, 5, 0)&lt;br/&gt;/ textboxsize = (25,5)&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="41002"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You could write a regular expression to force capitalization and use that in /mask. However, the much friendlier way is to simply allow participants to enter their first name however they want and then apply normalization to the response (e.g. toLower() followed by capitalize()).</description><pubDate>Fri, 27 Jun 2025 20:07:40 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>