Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
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 eostro
#830252
Hi -

We have developed a survey form which has a PMTable behind it with a list of question variables that match the variables in a form.

E.g. in the PMTable row, there is a listing that has

Question Variable
Question_1

And in the Dynaform there is a dropdown with a variable called Question_1

I would like to be able to select all the variables in the table, foreach cycle them, and access the ProcessMaker @@ variables that way but cannot find a way to dynamically reference the @@ ones. I want to do something similar to PHP dynamic variables with $$.

i.e. pseudo-logic

foreach($results as $n => $question)
{
$answer = @@$question['variable_name'];
-- do something with answr
}

I've tried @@$ and '@@'.$variable_name but no luck.

Is there a way to do this?

Thanks. Very useful. https://www.solarpanelinstal[…]

Thanks for the link, amosbatto! I was searching fo[…]

Hello Please can you help me with the place where […]

Hi there, I have 3.5.7, 3.8.1 and 3.8.2 versi[…]