I have an app that allows students to enter their lessons into a schedule. The lessons are displayed in a list and the user selects one to add that lessons to the schedule. Here is what the screen looks like:
When a user selects a subject, it is added to the first available text input. I want to implement a ‘back’ button which removes the text of the last filled text input. I have developed a procedure but I can not get it to work:
Why don’t you store the text input count when filling those components? If you create a variable called something like lastInputNumber and start it at 0, you can increase it by one each time a list viewer item is clicked.
Then, when the user clicks the back button, you just do in list all text input in Set Up Timetable set # app variable lastInputNumber to "". And decrease lastInputNumber by 1.
Is there a reason you’re subtracting 1 from app variable last input number? If that value starts at 0 and gets increased by 1 when an item is clicked, then it would be 1 after the first item is clicked and if you subtract 1, you get 0 meaning that you’d be setting list item #0 which isn’t possible.
I know that might be confusing… just wondering why you have that subtraction in the when back Click section.