Notes combobox type field does not show the value when acceessing by java script

Dear All

In my web application, I have a field of type combobox. I have assigned the id of this field.

when I am accessing value of this field through Java Script. It does not return any value.

I saw the View source of the page, there is no value attribute, assigned by notes. What could be the reason, please help me to sort out this problem.

Thank you

Ashish

Subject: Notes combobox type field does not show the value when acceessing by java script

I’m not certain, but I think Notes only sets the HTML value attribute when your combo-box options have aliases.

Example: if you have a combo-box field with the following options:

Yes

No

Change it so the options (as they appear on the field properties in Designer) are:

Yes|Yes

No|No

Then the HTML value attribute should appear.

Subject: RE: Notes combobox type field does not show the value when acceessing by java script

Thank you sir.

But if i populate the value in the combobox using DBLookup or DBColumn, that time how I can give the alaises. Please if you have any idea or logic. I am very thankful to you

Regards

Ashish

Subject: RE: Notes combobox type field does not show the value when acceessing by java script

The select element created from your ComboBox has an Options property. Each Option object has properties like text or selected (or value, if present), so there’s no need to deal with values.

If you still want to use values for whatever reason, have your @Db formula return strings formatted like you would enter them into the Choices box:

“Text | Value”

The pipe works as the alias delimiter just as if you entered it manually.