hash variable in message after submiting form

Confluence User - 23 Feb, 2017

I defined a "Run Process" in Userview Builder. For the 'Message Shown after process started' property, I defined "Trade ID #form.trade.trade_ID# is submitted for approval. on #date.EEE, dd-MM-yyyy#",

where trade.trade_ID referred to a field in the trade table used in the form.

When I run the process, after submitting the form, the message shown is "Trade ID #form.trade.trade_ID# is submitted for approval. on Thu, 23-02-2017"

It seems that there is a problem to display a Form Data Hash Variable in the customized message, or did I define it wrongly? 

 

userviews

1


24 Feb, 2017
confluenceUser
confluenceUser

Hey Herman,

I checked the code ( https://github.com/jogetworkflow/jw-community/blob/3b72431c92c55589c5b3ff3c364d6d4fee800990/wflow-core/src/main/java/org/joget/apps/userview/lib/RunProcess.java#L374 ) and I think the form hash does not work because it has no linkage (no context) with the form record row there the form hash variable will not translate well.

After the form's submission, the request object is long gone.

Maybe you can consider to use "URL redirect after process started" and "Field Name For URL Redirect Value Passover" and pass over the record ID to the page that contains the form hash to display value.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print