Skip to main content
Announcements
Happy New Year! Cheers to another year of collaboration, connections and success.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

InputField input constrains

Hi team,

Is there any chance to have input constrains for the values of an inputfield? e.g. If I have an inputfield that I want to get filled only with numeric values (i also want to have something like illegal sound or error message if the user try to insert text or any other invalid value).

Regards,

Eleni

11 Replies
Nicole-Smith

Yes, in input box properties:

You can find more info on the constraints in QV help:

simondachstr
Luminary Alumni
Luminary Alumni

InputSum(InputField) - this prohibits the user entering anything else than a numeric value.

Not applicable
Author

Hi Nicole,

Thank you for your reply but I am talking about input fields and not Input box.

Regards,

Eleni

Not applicable
Author

Hi Martin,

Thank you for your reply, but what happens if you want text or date format for your inputfield?

Kind Regards,

Eleni

rbecher
MVP
MVP

Then use two separate input fields..

Astrato.io Head of R&D
Not applicable
Author

In which way?

Could you please give me more info or a sample?

Kind Regards,

Helen

rbecher
MVP
MVP

I meant I wouldn't mix different formats in one input field. So I would use one field for text input and another for date input..

Astrato.io Head of R&D
Not applicable
Author

Hi Ralf,

Sorry for the misunderstanding I don't want to have mixed formats in one input field, I just want an inputfield with input constrain date, I just want in some way to prevent that the user will type anything else in that field.

rbecher
MVP
MVP

Hi Eleni,

you could have a custom input constraint like this:

IsNum(Date#($, 'DD.MM.YYYY'))

But I would suggest to use a calendar object to intput/select a date. Then also you have the date value as a number in the variable which is better for use with set analysis.

- Ralf

Astrato.io Head of R&D