Hash variables not working in nested Form Grid

Confluence User - 01 Sep, 2018

Hello,

Here's the situation:

  • The process opens Form A. 
  • Form A contains a Form Grid element that opens Form B. 
  • Form B, in turn, contains a Form Grid that opens Form C.

The problem is that variables such as #process.processId#, #assignment.activityId# or #variable.<variable_name># do not work in Form C. Essentially, it's like the double nesting prevents Form C from accessing the process context.

This is not a problem with Form C. If a Form Grid that opens Form C is placed in Form A, the hash variables work as expected. The nesting causes the problem.

Any help or insight is welcome.

forms

3


03 Sep, 2018
confluenceUser
confluenceUser

Hey Antoine,

Form C does not have access to process context, hence it is unable to use process-context related hash variables.

A workaround on this would be to populate the value(s) you require in appropriate form elements (eg: hidden field) in the parent form and use javascript to retrieve the values from the parent form.

Hope this helps.

03 Sep, 2018
confluenceUser
confluenceUser

Hi, thanks for the reply. So javascript in Form C would be able to retrieve the value of a field in Form B? How would this be done?

04 Sep, 2018
confluenceUser
confluenceUser

Hey there, First, you can create a few hidden fields in Form A and use hash variables to populate those hidden fields. Then, use javascript in Form C to obtain the values in the hidden fields in Form A.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print