justinmind-logo
 
Upvote 1

How to display text base from input number value?

Answered Thanada Sukkasemchai 4 years ago

I have input box for input only the number and when focus out text will show base with number input.

I can get the value from input but i don't know how to show it.

The example in the attach file.


Thank you.

Best Answer
photo

Thanks for clarifying. I now see what you are looking to do.

To do this, create an "On Focus Out" + "Show" event, showing the text. Then create a condition for this event that is When... Input text field = 1. Then, add another action to this event that hides all of the other text elements. Repeat this for each number of text elements that can be shown. Check out the attached example. Let me know if you have any questions.

Replies (4)
photo
1

Create an "On Focus Out" + "Set Value" event, selecting the text as the target of the action. For the value, click 'calculated' and then 'add expression'. In the Calculated Expression builder, drag the Input Text Field to the open space in the expression. That's it!

photo
1

Thank you for your answer but what i want is if i put 1 the text will show only one but if i put 3 the text will show 3 lines.


Thank you.

photo
1

Thanks for clarifying. I now see what you are looking to do.

To do this, create an "On Focus Out" + "Show" event, showing the text. Then create a condition for this event that is When... Input text field = 1. Then, add another action to this event that hides all of the other text elements. Repeat this for each number of text elements that can be shown. Check out the attached example. Let me know if you have any questions.

photo
1

Thank you for your answer again. Your answer is exactly what i want.

Leave a Comment
 
Attach a file