Re: [Xsltforms-support] Accessing first element of drop down list.
Brought to you by:
alain-couthures
From: Dan M. <dan...@gm...> - 2011-08-12 12:29:25
|
I am not exactly sure of your question since the line "set the first item value" is not clear to me. But to trigger an event when the form first loads you can use the "xforms-read" event. here is an example that will set the cursor position after a form is first loaded:: <xf:action ev:event="xforms-ready"> <xf:setfocus control="first-field" /> </xf:action> Here is a full example from the XForms Wikibook: http://en.wikibooks.org/wiki/XForms/Setting_Initial_Curso I don't know if the current version of XSLTForms supports the setfocus element yet, but this is how you use the xforms-read event. - Dan On Thu, Aug 11, 2011 at 7:12 AM, bharat darakh <dar...@gm...>wrote: > My Drop down list is set on "change" event so it retrieves value only if I > change the item from list. > But I have to set the first item value from drop down list > How could I do this . > Please help me. > Thanks. > > > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. > http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > -- Dan McCreary Semantic Solutions Architect office: (952) 931-9198 cell: (612) 986-1552 |