R
R
Roman Ovechkin2021-09-17 13:02:38
1C-Bitrix
Roman Ovechkin, 2021-09-17 13:02:38

How to call the 1C-Bitrix modal admin window?

During the execution of the task, it was necessary to call a pop-up window from the admin panel to select a category on the user side, under administrator rights, similar to what is on the screen: 614466f41b07f816348022.png
Maybe someone faced a similar task? Once a category is selected, its value must be stored in the input field.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tgarl, 2021-09-17
@tgarl

I once put off how it works (there was such a task)

подгрузить данные из соседнего окна
1 окно 
<div class="small_button" onclick="jsUtils.OpenWindow('<?=$pt?>?n=komy_f', 500, 600);">Кому...</div>
<input type="text" name="komy_f" id="komy_f" value="" />
2 окно
<script type="text/javascript">
function SetEl(id, name){
  el = window.opener.document.getElementById('<?=$_REQUEST['n']?>');
  el.value = id;
  window.close();
}
</script>
<a href="#"  onclick="javascript:SetEl(\''.$value["EMAIL"].'\')">Select</a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question