Skip to main content
Known Participant
April 28, 2017
Question

Fractions for TEB

  • April 28, 2017
  • 2 replies
  • 326 views

Is there a way to have a user enter a number less than 1 (such as .5 or .25) and that fraction is the variable? I've set my TEB as numerals only but wondering if it needs to be unchecked?

Thank you.

Ken

This topic has been closed for replies.

2 replies

Lilybiri
Legend
April 29, 2017

I didn't answer yet, because I don't know what you want to do with the input? When having to deal with decimals in numbers, I will use JavaScript.

Known Participant
April 29, 2017

I'm just curious. I have an interactive element that tells the user if something is below 1% if there is a variance in data or not. It doesn't need to be in the current project but if someone wanted to put in .5 or .25, how a TEB would assign that to a variable because of the decimal, given that the TEB is numerals only. AND, if the TEB accepted any input, how do you deal with someone entering a letter or symbol?

Participating Frequently
April 30, 2017

the safest strategy is to have a separate variable that is generated by a short javascript routine that processes the text input field and makes the right conversion from text to numeric as appropriate. 

David Burnham HBA
Inspiring
April 29, 2017

Based on my experience, the More Options should be set to Allow All on the text entry box variable.