N
N
newked2021-09-16 17:30:33
1C-Bitrix
newked, 2021-09-16 17:30:33

Bitrix form of adding an element swears on the field and does not send data. Why?

Hello world! There is a task to implement reviews on the site using Bitrix. The task is simple, but I'm dumb.
What I did:
1. Added an infoblock with my properties. The properties are mostly of the "string" type, but there is also the "HTML/text" type.
2. I copied the default template for adding an element and I start changing everything in it.
3. In the template parameters, I specified the fields that need to be filled.
It seems that everything is ready, but I'm starting to test the fields that are string with them, everything is buzzing.
But here is the message field, which is of type "html/text". The form constantly swears at this field, they say the type is not filled. That's why?
This is how the field code looks like in the form:

<textarea name="PROPERTY[169][0]"><?=$arResult["ELEMENT_PROPERTIES"][169][0]["VALUE"]?></textarea>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
newked, 2021-09-17
@newked

In general, this is how it should be:

<textarea placeholder="тест" name="PROPERTY[169][0][VALUE][TEXT]" value="" required></textarea>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question