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 for your reply, Press F12 in your web bro[…]

I created a new process to make it easier to look […]

Genial!!! gracias. :D

This is resolved. I took a punt on Amos' suggesti[…]