Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
aj0031724
Partner - Creator
Partner - Creator

Accept User input value between 0 and 1

Dear TEAM,

We need one input box to accept any number between 0 AND 1.IT could be any dev=cimenal values also between 0 AND 1.

For example ->0.0001 or 0.00000034 upto 9 decimal is allowed.

I created one VARIBLE with predefined values between 0 and 1 WITH STEP OF 0.000000001 .But it is not behabving correct.

Can you please guide and advise how to achive?

3 Replies
rahulpawarb
Specialist III
Specialist III

Hello Avinash,

You can apply the validation by setting background color of Input box if variable value is greater than 1 or less than 0.

Add below given expression as calculated background color for input box:

If($(vStep)>1 OR $(vStep) < 0, Red())

Regards!

Rahul

sasikanth
Master
Master

HI,

it might be because your step value is very low that we may get huge no. of values between 0 and 1.

is step value is  mandatory (0.0000001)? any how input box allows to give user choice value

petter
Partner - Champion III
Partner - Champion III

Try instead to use "Input Constraints" / "Custom" and use this expression $>=0 AND $<=1