Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Adding validation to text field - multiple short text

Adding validation to text field - multiple short text 4 years 6 months ago #71798

  • miradoro
  • miradoro's Avatar
  • Offline
  • Expert Lime
  • Posts: 92
  • Karma: 0
i see but that works for standard questions

what if i am using a question Type: Multiple short text?
The administrator has disabled public write access.

Adding validation to text field - multiple short text 4 years 6 months ago #71800

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6132
  • Thank you received: 1362
  • Karma: 535
The question type doesn't matter.

If the script is in the source of the question, it will only act on the page whwere the question appears.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Adding validation to text field - multiple short text 4 years 6 months ago #71820

  • miradoro
  • miradoro's Avatar
  • Offline
  • Expert Lime
  • Posts: 92
  • Karma: 0
i see

Then my ID is: answer38194X3X115email

this is the code i have

<li>
<label for="answer38194X3X115email">E-mail:</label>
<span>

<input class="text " type="text" size="20" name="38194X3X115email" id="answer38194X3X115email" value="" onkeyup="noop_checkconditions(this.value, this.name, this.type);" maxlength="255" />

</span>
</li>
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.183 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form