Forum Discussion

Rob_Cohen's avatar
Rob_Cohen
Ideator I
1 year ago

Responsive forms & Javascript

Hi all,

I'm creating a responsive form in Innovator Release 30 and want to use a client method (Javascript) to fill in some fields.  With classic forms, I could use the getFieldByName method to reference the element on the form, but this doesn't seem to work with responsive forms.  I'm getting this error:

aras_object: "undefined" : "undefined"

Does anyone know how to get and set field values in Javascript for responsive forms?

Thanks,

Rob

3 Replies

  • Responsive forms delivers a much-needed UI client column/row layout which is a valuable and essential part of user interface design, however it is extremely limited in terms of the content that can be used within them.
    The inability to use form element types like HTML, or style with CSS, or add non-Property linked elements makes it a good idea with very limited business value.
    We really need to be able to combine the responsive layout functionality with the basic client HTML behaviors of regular forms.  Otherwise the air gap between them leaves the potential of the union unfulfilled.
    Any plans to support this?  Is there another way to get the handle to the elements and add child HTML content in columns and rows?

  • eli_donahue's avatar
    eli_donahue
    Community Manager

    Hi Rob,

    Responsive forms currently don't support Javascript methods for field or form events. Instead, the goal is to use rules and data store events for custom logic rather than events tied to DOM elements in the form. This approach will help provide a more consistent experience because data store events trigger any time client data is updated - not just when a form control is updated.

    Does your use case require setting a field value on initial load or when some data on the form changes?

    • Rob_Cohen's avatar
      Rob_Cohen
      Ideator I

      Hi Eli,

      Basically I want several fields be auto-filled when the user clicks an Action item in the toolbar or presses a button.

      Thanks,

      Rob