1
0
-1

Hello,

I have 2 situations:

1) Get a form field's value to use inside a hash variable on another field in the same form.

2) Mirror a form field's value on another field in another form, both in a multipage form.

Note: In both cases I may need to access the value before saving into the DB.

Also I was searching how to use this API Javascript API#getValue(fieldId) but I didn't understand where should this code be written.

Can you give me any hints? Thanks!


    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1
      1. Form hash variable on works for saved values in DB.
      2. To grab another field value in the same form, use Javscript.
      3. Store your Javascript (or styles) in the field element Custom HTML.
      1. Catarina Murteira

        Thanks for the help.

        Just one more question: for the situation 2, do you know if it is possible to use a form binder hash variable instead of a form hash variable. Or is it also possible to use javascript to grab a field value from another form in the same multipage form?

      2. Matthew King

        Note that form hash variable only works if the data/value you are retrieving is already saved in the database table. Form hash variable cannot work for values on screen in your current form that's not yet saved. For manipulation of on screen values you need to use Javascript API#FormUtil.

      CommentAdd your comment...