Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Link to other place in form

Avatar

Level 1

How can i link to other places in my form?
I kwow i have to do it Javascript, but what code do i have to use?

Thanks Josh

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

you have to use a SOM expression to a field (a object the user can fill).

The setFocus method cannot jump to a subform.

This will look like:

xfa.host.setFocus(form1.werkervaring.TextField2)

View solution in original post

4 Replies

Avatar

Level 10

You can use setFocus() to jump to different fields.

xfa.host.setFocus(path.to.field);

Avatar

Level 1

I tried 3 different ways, but couldn't succeed. Can you have a look at the Pdf please, i tried the 3 upper buttons:

http://www.mijnbestand.nl/Bestand-SD6TUJW3CGJO.pdf

Thanks for your help, if i only have one button working, i can fix the rest

Josh

Avatar

Correct answer by
Level 10

Hi,

you have to use a SOM expression to a field (a object the user can fill).

The setFocus method cannot jump to a subform.

This will look like:

xfa.host.setFocus(form1.werkervaring.TextField2)