How to give ModelElement Control ID to widget

redacted redacted redacted

Hi, which Widget of the WidgetMap are you using for your customization?

Normally, the props of the widget should contain the necessary id, which can then be attached to any other element.

The FormEngine Devapp has an example showcasing this <INTERNAL_LINK>

If there are validation errors on the customized TextLineStateless widget, the “Go to issue” still works as expected, because the id is just passed on.

Sidenote: Generating the id yourself is technically possible if you have the form model element (so in your case, the Control), but it would require copying internal Form Engine code. :warning:

redacted redacted redacted

The current focus handling code in Form Engine only works when the underlying HTML element with the passed id is either of type input, select or textarea.
div elements also work, but only if they specifically contain the data-role attribute set to “text-output”.

As a consequence, this means that when customizing Controls via WidgetMap like described here, the “Go to issue” behavior will only work if the customized element will render one of the specified elements.