mimpro Posted July 26, 2013 Share Posted July 26, 2013 Hi there guys. Happy coding. In my module development, i have done my 1st field for inputs. Then i made a 2nd field which i don't need to put any input elements there but to put an iframe (let's say from facebook like box). So i need help in developing this code.. within private function initForm(){ .... $this->fields_form[1]['form'] = array( 'tinymce' => true, 'legend' => array( 'title' => $this->displayName, 'image' => $this->_path.'logo.gif' ), (yeah.. I stuck here on how to put the iframe code to work) in the form helper document - i couldn't find anything about iframe. It's all about input elements. Appreciate if you guys could guide or hint me? Link to comment Share on other sites More sharing options...
NemoPS Posted July 26, 2013 Share Posted July 26, 2013 I might be wrong but I don't think the form helper can handle iframes. Perhaps you can try adding it as content later as a value? 1 Link to comment Share on other sites More sharing options...
mimpro Posted July 26, 2013 Author Share Posted July 26, 2013 Yes it seems right that helper forms don't helps in iframes. Perhaps you can try adding it as content later as a value? Okay, can give me an example on how to do this? Just a simple example in coding perhaps. Thanks! Link to comment Share on other sites More sharing options...
NemoPS Posted July 27, 2013 Share Posted July 27, 2013 Try this $helper->fields_value['nameofthefield'] = 'the iframe code here'; Of course, use your own variable names! Only keep in mind that 'fields_value', which must be called exactly that way 2 Link to comment Share on other sites More sharing options...
mimpro Posted July 27, 2013 Author Share Posted July 27, 2013 Wow! That is a huge help! I never know that code. Very appreciate it. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now