Rochdi Badis · Jun 23, 2021

findElement("input").value is not working

Hi Guys,

I've a combo inside a tabGroup inside a form and using :

var MyInput = zen("MyCombo").findElement("input").value;

is not finding the current input, any help pls?



Product version: Ensemble 2016.1
0 79
Discussion (3)2
Log in or sign up to continue

Can you post the code for your form? That would be very helpful.

I'd expect that to work provided the id (not name) of the combobox/dataCombo is 'MyCombo'. e.g., this works fine:

Class DC.Demo.FindElement Extends

XData Contents [ XMLNamespace = "" ]
<page xmlns="">
<tabGroup showTabBar="true">
<tab caption="Tab One">
<combobox id="MyCombo" editable="true" />
<tab caption="Tab Two">
<button onclick="zenPage.alertComboValue()" />

ClientMethod alertComboValue() [ Language = javascript ]