How to read data before show FORM

Many thanks, your are right i have read in other post..

My trouble is how to get array data or array values in a form.. ??

thanks

Javier
 
Can you explain what you are trying to do?

The hook you'd need would be 'onLoad', not 'onBeforeLoad'. The onBeforeLoad runs before the form data is loaded. The onLoad runs after, so form data is in $formModel->data[].

However ... if you explain what you are trying to achieve, I might be able to save you some effort ... if it's to do with the repeat group thing in your other posts ... what you might be thinking of doing may not work.

-- hugh
 
I presume you were thinking of somehow pre-populating repeat groups in the onLoad plugin, but as I explained in a previous answer, for a new form, any repeat handling has to be done in JavaScript on the page.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top