Hi,
I am very new to javascript. For a particular requirement, I am using LOV fields in place of Picklist in one of my CRM screens. In my screen, I have a no. of days picklist in one section. Underneath that, an LOV with the different no. of days is available. On top of these picklist and LOV, I have one radio button list, which has x and y.
If x is selected, I have to default LOV text to "10 days". If y is selected, the LOV field should be empty and let the user will select the desired country.
My question here is, I shouldn't hard code the value "10 days", rather I should pick the LOV text by passing the LOV index. I should pick the text "10 days" based on the index. Say if "10 days" is at 1st index, I should pass this index and get the text. Is it possible to pick a LOV text dynamically through Javascript just by passing the LOV index?
Thanks in advance for your help!


