Welcome! » Log In » Create A New Profile

Trying to add "input" element

Posted by Frank 
Frank
Trying to add "input" element
October 10, 2013 05:27PM

Hey,

I'm trying to add the input element. I have it showing up now, but something seems wrong in my attribute definition. It strips the attribute I have specified:

$input = $def->addElement( 'input', 'Inline', 'Empty', 'Common', array( 'type' => 'Enum#search|text' ) );

I assume that I have to whitelist that attribute somewhere-- can that be done without providing an exhaustive list of all attributes common to all elements?

Frank

Frank
Re: Trying to add "input" element
October 10, 2013 05:37PM

I got this to work by using $def->addAttribute -- not sure why it had to be done that way.

Sorry, you do not have permission to post/reply in this forum.