How do i put in "If any textbox is empty" code/block

Hi everyone. I am using thunkable for the first time. Was setting up a fuel log calculator. I have 3 to 4 textboxes where the quantities will be entered by the user and i wanted to put a if logic in case any of the textboxes was empty. I am not sure what specific blocks to use as i see the if/else logic but specifics how do i clip in to it that if any of the text boxes are left empty then turn the textbox border to red? Please help

hi there, welcome to the thunkable community,
you can use the or logic block and fill in the spaces with label’s/text input’s text. hope this helps

something like this but connected with something

Hi thank you for the suggestion. Ive just tried that. But i think there is some issue with it as it doesnt work.

When i click the calculate sia button it should calculate and display those results if all fields have values in them.

hi,
you have to use the text component
step one go to the text section of blocks


step two use this component colored in red
Screen Shot 2024-09-05 at 7.05.14 PM
you have used the list one

Thank you that worked well. :pray:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.