ricslabb03
Member
Hi there,
I have always used the element JS plugin onload to hide elements. However, it is undesirable due to the momentary flashing of elements. I would therefore like to do it on the server-side before the rendering of the DOM. Here is a similar question: http://fabrikar.com/forums/index.ph...n-depens-on-other-elements.39384/#post-198233
@lke suggested:
However, getElement does not work for me in the PHP onload form plugin. Is getElement still used? Or is it not applicable for onLoad? If so, what could I use?
Thnx,
Richard
I have always used the element JS plugin onload to hide elements. However, it is undesirable due to the momentary flashing of elements. I would therefore like to do it on the server-side before the rendering of the DOM. Here is a similar question: http://fabrikar.com/forums/index.ph...n-depens-on-other-elements.39384/#post-198233
@lke suggested:
PHP:
$elem = $formModel->getElement('table___element');
$elem->access->view = false; //to hide the element on details view
$elem->access->use = false; //to hide the element on edit view
However, getElement does not work for me in the PHP onload form plugin. Is getElement still used? Or is it not applicable for onLoad? If so, what could I use?
Thnx,
Richard