1b.app
Link copied -

Fix the work of the process interface block "Insert code on the page"

in the interface I display the block "Insert code on the page"
into which I insert the following script to display text on the page
If you refresh the page, then everything is fine,
if you click "save", then nothing but the text of the script is displayed on the page
here is a video where it is shown https://www.loom.com/share/e15437b0af8a467289a6a7e4c93f68d7
you can test here https://avtoservice.crm-onebox.com/admin/customorder/lead/1/edit/
please fix the block.
Original question is available on version: ru

Answers:

With your script, you break part of the logic of the tpl task. Rewrite your script, leaving in it, for example, just the necessary html code.
01.12.2020, 10:01
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Bodyako Dmitry
Employee wrote:
With your script, you break part of the logic of the tpl task. Rewrite your script, leaving in it, for example, just the necessary html code.

Would it be hard to drop an example?
now like this
script>
document.write("Just text and newline<br>Second line of text");
/script>
01.12.2020, 12:04
Original comment available on version: ru

Just text and line feed<br>Second line of text
well leave it like this
01.12.2020, 12:21
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)
it turns out that if there are no script keywords in the text, then nothing is output by this block.
here is the code that displays what you need on the page
01.12.2020, 12:22
Original comment available on version: ru

Probably there is a check for tags, which is written in the block settings.
01.12.2020, 12:25
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)
it turns out that if there are no script keywords in the text, then nothing is output by this block.
here is the code that displays what is needed on the page
01.12.2020, 12:30
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Bodyako Dmitry
Employee wrote:
Probably there is a check for tags, which is written in the block settings.

nope, not written ))
anyway. figured it out))
01.12.2020, 12:46
Original comment available on version: ru

well, it is written that it is necessary to wrap it in tags)
01.12.2020, 13:03
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment