Page 1 of 1

Panel

Posted: Sat May 11, 2019 2:07 am
by HeshanKaru1994
Can you show an html preview inside a panel which will generate according to given parameters

Re: Panel

Posted: Mon May 13, 2019 10:18 pm
by amosbatto

Re: Panel

Posted: Tue May 14, 2019 12:48 am
by HeshanKaru1994
Yes there is a mistake in the documentation, you have to pass php variables rather than using processmaker variables to panelContent variable

Re: Panel

Posted: Tue May 14, 2019 8:54 pm
by amosbatto
If that is what you want, then create a trigger like this:
Code: Select all
@@paymentMethod = 'cash';
Which is fired before the Dynaform.

Likewise, you could have a trigger like this:
Code: Select all
@@panelContent = "<p>A message to display to the user.</p>";

Then, create a hidden variable in your Dynaform associated with the "panelContent" variable.
Then, add this JavaScript to your Dynaform:
Code: Select all
$("#instructions").find("div.panel-body").html( $("#panelContent").getValue() );