CA Service Management

Expand all | Collapse all

How to get options data from select component in catalog form?

  • 1.  How to get options data from select component in catalog form?

    Posted Sep 20, 2017 09:50 AM

    Hi! I am using plug-in to load data into select component and then using ca_fdGetOptions('form1', 'select1') to get an array of options. But I am getting an empty array even though the selection component has data loaded into it.

    Thanks and Regards,

    Anu



  • 2.  Re: How to get options data from select component in catalog form?
    Best Answer

    Posted Sep 20, 2017 01:25 PM

    Hi,

    ca_fdGetSelections(ca_fd.formId,'select1') will get you an object as you can check on your browser console.

    To get the id

    ca_fdGetSelections(ca_fd.formId,'select1')[0].id

    Andn the value

    ca_fdGetSelections(ca_fd.formId,'select1')[0].label



  • 3.  Re: How to get options data from select component in catalog form?

    Posted Sep 21, 2017 09:03 AM

    Thank you!!