Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Yes, in input box properties:
You can find more info on the constraints in QV help:
InputSum(InputField) - this prohibits the user entering anything else than a numeric value.
Hi Nicole,
Thank you for your reply but I am talking about input fields and not Input box.
Regards,
Eleni
Hi Martin,
Thank you for your reply, but what happens if you want text or date format for your inputfield?
Kind Regards,
Eleni
Then use two separate input fields..
In which way?
Could you please give me more info or a sample?
Kind Regards,
Helen
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..
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.
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