Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

How to get to know that the given OBJECT is a drop-down or check box?

Avatar

Level 8

I put a drop-down object in my_form, the details are,

drop-down name = my_drop_down

data binded with my_data

caption = my_caption

For some, reason, some one has given me this objects (my_drop_down)... i want to figure it out that Whether its a drop-down type of object or a check box or a text field? How can i figure it out PROGRAMITICALLY/Java script?

1 Accepted Solution

Avatar

Correct answer by
Level 2
Level 2

Hi,

You can write in the 'exit' event of the field and it will give the name of the field type, which you can use and refine your code further.

app.alert(this.ui.oneOfChild.className);

Hope this helps.

View solution in original post

3 Replies

Avatar

Level 6

Click on the object and look at your object palette.  Click on the Field tab.

LiveCycle will identify object type and display it in the window.

Avatar

Level 8

Thank you, But, i need to figure out it PROGRAMMITICALLY with java script?

i used,

xfa.resolveNode("CUSTOMER.P1.Subform1.TextField28").id == 'DropDown'

it did not worked! pls. help me

     

Regards

Avatar

Correct answer by
Level 2
Level 2

Hi,

You can write in the 'exit' event of the field and it will give the name of the field type, which you can use and refine your code further.

app.alert(this.ui.oneOfChild.className);

Hope this helps.