Jump to content

How to put an iframe within function initform() fieldset?


mimpro
 Share

Recommended Posts

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).

 

to-put-iframe.jpg?attachauth=ANoY7coTW06dh4B46Xbfv_oJVF6ZDp83rDhJnjys3-CuHCdt4TDeAH0SzDJ8hF2Hc8GhNgxAeqpPrDu0_OkN3Nk_LEQO-mQvcStK34YM2UrYoA0AA46rrfmW2YghldcDRwjCxL3v-FsE1CCllVVXPKBjdPjDn56lkY4ChIZh2qxz_Ac_aNp8WnsaA60f1Fs0SHpiC02LlC-NTcT_Xq01Kd-ikv3WnSK7-pFuZp68nHq0rRes_VE5vow%3D&attredirects=0

 

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?

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

  • Like 2

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More