Skip to main content
Inspiring
May 18, 2020 10:38 AM UTC
Answered

Is there a way to get the name of the own field itself ?

Is there a way to get the name of the own field itself where the code is written, in the code that writes in the field?

 

For example, if I have a field named "ABC".

    var x = this.getField ("ABC");
    event.value = x.name;

It will be "ABC",

 

Is there a way to avoid to writing own field name ?
    var x = this.getField ("ABC") ;

This topic is closed to new replies. Start a new post to keep the conversation going.
BarlaeDC
BarlaeDCCorrect answer
Community Expert
May 18, 2020 11:14 AM UTC

Hi,

you should be able to "event.target.name", as it should return the name of the field.

Regards

Malcolm

 

3 replies

BarlaeDC
Community Expert
BarlaeDCCommunity ExpertCorrect answer
Community Expert
May 18, 2020 11:14 AM UTC

Hi,

you should be able to "event.target.name", as it should return the name of the field.

Regards

Malcolm

 

Translate
Inspiring
May 18, 2020 11:44 AM UTC

wow! thank you!

Translate