Skip to main content

How do you pass a value IN to a display Form activity?

Comments

3 comments

  • Permanently deleted user

    I have been trying the Set Form Element Property Activity, but keep encountering:

     

    "[WF: expression evaluation error] The given expression could not be evaluated. "$form1.state.textBox1" Cannot read property 'state' of undefined".

     

    Seems the form object is not yet instantiated... how do you use this activity, or is the solution elsewhere?

     

    0
  • Stefan Schweigert

    Hi David,

     

    For the value of 'bob', you can use a Create Value activity with an input value of bob. When you then use the Set Form Element Property activity, you can set the Property Name to description and the Property Value to: ="Enter a value, " +$value1.result

     

    If you configure the Set Form Element Property property within the load event of a Text, then you can leave the Element input blank, or set it to text1. I've uploaded a workflow that uses this logic.

     

    I would avoid accesses the textBox1 object in this way. Most other form elemen types will have a '.value' or '.display' property instead.

     

    Thanks, Stefan

    0
  • Permanently deleted user

    Thanks very much Stefan. Much appreciated.

    0

Please sign in to leave a comment.