leighshayne
New Member
Hi
I would like to be able to return the value of an element so that I can use it to show or hide a certain div on a custom form. I've currently got
but this gives me the element wrapped in a div
How do I just return the element content? If I use the plugin {fabrik view=element list=1 rowid=[rowid] element=horse_info___Name} I cannot use this in the php code I want to execute on the page as it is rendered after the page has loaded.
Any suggestions?
I would like to be able to return the value of an element so that I can use it to show or hide a certain div on a custom form. I've currently got
PHP:
$this->element =& $this->elements['Records'];[/FONT][/SIZE]
[SIZE=3][FONT=arial]$records= $this->element->element;[/FONT][/SIZE]
[SIZE=3][FONT=arial]echo $records;
but this gives me the element wrapped in a div
HTML:
<div id="horse_info___Records_ro">Here's the content I want</div>
How do I just return the element content? If I use the plugin {fabrik view=element list=1 rowid=[rowid] element=horse_info___Name} I cannot use this in the php code I want to execute on the page as it is rendered after the page has loaded.
Any suggestions?