D
D
Daniil Galkin2019-03-13 12:46:41
1C-Bitrix
Daniil Galkin, 2019-03-13 12:46:41

How to use infoblock properties as a parameter when creating a script condition?

there is this code

document.getElementsByClassName("stock_image").style.opacity = '0';

it should be executed if "yes" is checked in the active product property
and I don't know how to pull this property.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Alexandrov, 2019-03-13
@DgalkinD

By the element ID, you can get data about the tick
https://dev.1c-bitrix.ru/api_help/iblock/classes/c...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question