Upvote 1

Is it possible to set focus on another field on the next row in a Data list?

Solved Cong Pham 4 years ago

I have a data list where I can edit one of the fields and made that field looks like a text box. I want to be able to tab to the same field on the next row after editing. Is it possible to do?

Replies (3)

Yes it is! Check out this example. Here's how it works:

1. First, we have a Data Master with an 'id' field that specifies the row order. You don't need to include this in the Data List to show during simulation, it only needs to be in the Data Master.

2. Next, we created an "On Key down (tab)" + "Set Value" event, which sets the value to a Variable. The value is an expression that selects the id field number from the row you're focused on, and adds 1 to it. So if you focused in on row 3, and then hit the tab key, the Variable's value is now 4.

3. Then, we created an "On Variable Change" event, which will set focus on the row whose id number matches the Variable's value. So if you hit the tab key on row 3, which changes the Variable's value to 4, you'll now focus on row 4.

Hope this helps, and please let me know if you have any questions.


Hi Danielle!

Thank you so much for helping me out. I was able to make it work based on your example!


Great! I'm glad to hear that. Feel free to contact us again if you have any other questions or comments.

Leave a Comment
Attach a file