Skip to main content
Known Participant
March 2, 2023
Question

Please help!! About Tab order

  • March 2, 2023
  • 1 reply
  • 1347 views

I run a custom validation script that I should type something on the field to show the right-side field (but I should hit ''enter" after typed to show) 

 

That mean if I hit without "enter" then directly hit "tab", it will guide me to the below field.

 

Can I do something to show the right-side field while I am typing on the field (skip hitting "enter"), so that I can tab to that field directly.


As you can see: I type 123123--> enter-->the right-side field will be shown 

 

 

 

 

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
March 2, 2023

Yes, you can do that. Let's say the field name you wish to show is "Text2", you can use this as 'Custom keystroke script' under 'Format' tab, when you put script it will disappear, but it will still work:

if(AFMergeChange(event).length != 0) this.getField("Text2").display = display.visible;
else
this.getField("Text2").display = display.hidden;

Known Participant
March 3, 2023

By the way, is the font size of the options inside the dropdown list depending on the field size? It's too small, can I adjust a bigger font size?

Nesa Nurani
Community Expert
Community Expert
March 3, 2023

It would depend on fields size only if it's set to 'Auto'.