It's all about the answers!

Ask a question

In RTC, Inside a validator function, how can I access other element value?

Marcelo Bilezker (46112) | asked Apr 19 '21, 8:07 a.m.


I am running a validator function, receiving 3 parameters (attribute, workitem, configuration)
I want to check other item value, but, from Developer Tool, i see that this other element has no id, and no name, so i can not get it through document.getElementById or document.getElementsByName.

Is there a way to get the sibling element of the workitem received in function?


One answer

permanent link
Ralph Schoon (63.3k33646) | answered Apr 19 '21, 8:14 a.m.
edited Apr 19 '21, 9:43 a.m.

Also consider to perform or at least look at the last two labs.

In the provided supported Java Script API you have only access to the data of the work item the customization runs in. E.g. you can access the attributes of the work item using workitem.getValue("attribute ID").

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.