Jump to content

кнопка "добавить"


Recommended Posts

Здравствуйте, подскажите пожалуйста, как я могу добавить кнопки "добавить " и "удалить" , которые будут добавлять/удалять нужные мне поля?

Например, я создал с помощью Studio новое поле "Образование"(Education_c) в Контактах, Как я могу теперь при создании нового контакта клонировать свое поле "образование" нажатием на эти кнопки.

Такой функционал есть у стандартного поля email адрес, прикреплю картинки.

На1.png.fc0d0cdc962a7c7a9e39715c00c6e2c2.png

второй картинке то,что мне удалось сделать, это добавить только кнопку, но как я могу задать ей "исполнение"?

22222222222.png.9e7f886101de5a0c55fff230ca7fd060.png

Вот мой код на этой картинке

c901b1ef7b502cd8038c77735d31a005.thumb.png.0a80fb481f8c2d6a4a5a6c2ad6694de9.png

или так 

array (
            'name' => 'education_c',
            'label' => 'LBL_EDUCATION',
              'customCode' => '<input type="text" name="education_c" id="education_c" size="30" maxlength="255" value="{$fields.education_c.value}" title=""> 
                          <button type="button" class="btn btn-danger education-add-button" title=""  onclick="" >
			                          <span class="suitepicon suitepicon-action-plus"></span><span></span>
		                  </button> ' ,
          ),

 

 

Подскажите пожалуйста, до этого времени я был только очень поверхностно знаком с php...

p/s а как в спойлер картинки спрятать?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...