Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

array text type question - disable number with decimal place

  • gogi100
  • gogi100's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #225251 by gogi100
Please help us help you and fill where relevant:
Your LimeSurvey version: [3.x]
Own server or LimeSurvey hosting: local
Survey theme/template: vanilla
==================
(i have a question with type array(text). i changed in other> just number on enable. i want field validation: disable decimale place.how?)

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #225256 by Joffm
Use function "is_int()" to validate
[url] www.limesurvey.org/manual/ExpressionScri...mplemented_functions [/url]

or Regular expression /^[0-9]+$/
[url] www.limesurvey.org/manual/Using_regular_expressions/en [/url]

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose