Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>$form['education']['languages'] = array( '#type' =&gt; 'fieldset', '#title' =&gt; t('Languages'), '#prefix' =&gt; '&lt;div id="div_languages-fieldset-wrapper"&gt;', '#suffix' =&gt; '&lt;/div&gt;', ); for ($i = 0; $i &lt; $form_state['language_num']; $i++) { $form['education']['languages'][$i]['labels'] = array( '#prefix' =&gt; '&lt;h1 id = "stu_form_label"&gt;', '#type' =&gt; 'item', '#title' =&gt; t('Form :'.($i+1)), '#suffix' =&gt; '&lt;/h1&gt;', ); // Language Drop down box $option_language = _get_language_mstr(); $form['education']['languages'][$i]['language'] = array( '#prefix' =&gt; '&lt;div class="container-inline bottom_space languages_drop_down"&gt;', '#options' =&gt; $option_language, '#type' =&gt; 'select', '#title' =&gt; t('Language'), '#suffix' =&gt; '&lt;/div&gt;', ); // Level Drop down box $option_Level = _get_level_mstr(); $form['education']['languages'][$i]['level'] = array( '#prefix' =&gt; '&lt;div class="container-inline bottom_space languages_drop_down"&gt;', '#options' =&gt; $option_Level, '#type' =&gt; 'select', '#title' =&gt; t('Level'), '#suffix' =&gt; '&lt;/div&gt;', ); } if ($form_state['language_num'] &gt; 1) { $form['education']['languages']['remove_name'] = array( '#type' =&gt; 'submit', '#value' =&gt; t('Remove last language'), '#limit_validation_errors' =&gt; array(), '#submit' =&gt; array('remove_one_language'), '#ajax' =&gt; array( 'callback' =&gt; 'add_more_callback_language', 'wrapper' =&gt; 'div_languages-fieldset-wrapper', ), ); } $form['education']['languages']['add_name'] = array( '#type' =&gt; 'submit', '#value' =&gt; t('Add language'), '#limit_validation_errors' =&gt; array(), '#submit' =&gt; array('add_one_language'), '#ajax' =&gt; array( 'callback' =&gt; 'add_more_callback_language', 'wrapper' =&gt; 'div_languages-fieldset-wrapper', ), ); function add_more_callback_language($form, $form_state) { return $form['education']['languages']; }` </code></pre> <p>Try this method</p> <p>Sample Link: <a href="http://nexumus.de/en/student/registration" rel="nofollow">URL</a></p> <p>Click the tab <strong>education</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload