Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By HeshanKaru1994
#824404
Can you show an html preview inside a panel which will generate according to given parameters
By HeshanKaru1994
#824423
Yes there is a mistake in the documentation, you have to pass php variables rather than using processmaker variables to panelContent variable
User avatar
By amosbatto
#824443
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() );

Thanks Amos, You are right, it is better to run […]

Issue with File field

See: https://www.pmusers.com/index.php/Disable_and[…]

What version of PM are you using? When the user de[…]

Hide panel on new case list

Why don't you want to display that? (I'm asking b[…]