It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Using Javascript to select specific index from LOV

Using Javascript to select specific index from LOV

Postby sapanvig on Thu Aug 13, 2009 11:01 am

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!
sapanvig
 
Posts: 1
Joined: Thu Aug 13, 2009 10:54 am

Who is online

Users browsing this forum: No registered users and 5 guests