2
1
0

I need to set data into a Data Field located in a form from two diferent components, one is located in the form and the other is at the template.

I can easily get the data from the form just like data.dataField = 'somehing', and to get the data from the component at the template im using a field reference as Form.getPathData(path, data) but is there any way to set data to the field reference? maybe something like Form.setPathData()

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      Hi Benjamin,

      Almost exactly like that!

          Form.setPathData('data.textField', 'some value');


        CommentAdd your comment...
      1.  
        0
        -1
        -2

        Thanks Bill, it worked like a charm (heart).

        I just want to point out that this function is not included in the API Reference, it would be great to have it there for future reference. (I'm checking the reference in this link https://maestro.avoka.com/maestro/secure/help/jsdoc/Form.html)


        1. Unknown User (bfrost)

          Thanks Benjamin, I'll have the documentation updated.

        CommentAdd your comment...