Nested form fields render change

edited May 2019 in Support

Hi,
I have created 'nested' type field with two fields inside and both are rendered one under another - each nested field is rendered inside separate

tags.
Is it possible to easily change that to render nested fields next to each other - inside separate tag only?

Comments

  • It sounds like you are wanting to break it out of the default table format. To do that, you can try and pass the following "render_format" to the init configuration parameter:

    $field['my_tested'] = array('type' => 'nested', 'init' => array('render_format' => 'divs'));
    
  • Works great. Thank you :)

Sign In or Register to comment.