In Form Builder I have the following code on a select1 control:
<xforms:action ev:event="xforms-value-changed"> <xforms:setvalue ref="instance('fr-form-instance')/section-3/control-17" value="''"/> <xforms:setvalue ref="instance('fr-form-instance')/section-3/control-18" value="''"/> <xforms:setvalue ref="instance('fr-form-instance')/section-3/control-19" value="''"/> <xforms:setvalue ref="instance('fr-form-instance')/section-3/control-20" value="''"/> </xforms:action> <xforms:action ev:event="xforms-value-changed" if="instance('fr-form-instance')/section-2/control-11 = 'Administration/Finance'"> <xforms:setvalue ref="instance('fr-form-instance')/section-3/control-19" value="'GroupWiseFull AccPacFull'"/> <xforms:setvalue ref="instance('fr-form-instance')/section-3/control-20" value="'AfterHoursBuildingAccess'"/> </xforms:action> <xforms:action ev:event="xforms-value-changed" if="instance('fr-form-instance')/section-2/control-11 = 'Council-Services'"> <xforms:setvalue ref="instance('fr-form-instance')/section-3/control-17" value="'Contribute MSAccess'"/> <xforms:setvalue ref="instance('fr-form-instance')/section-3/control-19" value="'TimeManagerFull AccPacFull LaserficheFull '"/> <xforms:setvalue ref="instance('fr-form-instance')/section-3/control-20" value="'CitrixAccess TM-Scheduler'"/> </xforms:action> What we want is that when a selection is made, different select controls values are set. And if a person chooses the wrong value in select1, that all the controls are cleared and then new values entered. On first selection the appropriate checkboxes are ticked. When a selection is made that does not set values, ticks are cleared except one of them? Next selection more ticks. But when next selection is suppose to clear them nothing happens - all ticks remain even though in instance inspector no space seperated values appear for the select control. Is this something I am doing wrong or is this a known issue? Thank you. |
Administrator
|
Brian,
Can you send a simple form which reproduces this? -Erik On Thu, Feb 11, 2010 at 2:50 PM, bsteuhl <[hidden email]> wrote: > > In Form Builder I have the following code on a select1 control: > <xforms:action ev:event="xforms-value-changed"> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-17" value="''"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-18" value="''"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-19" value="''"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-20" value="''"/> > </xforms:action> > <xforms:action ev:event="xforms-value-changed" > if="instance('fr-form-instance')/section-2/control-11 = > 'Administration/Finance'"> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-19" > value="'GroupWiseFull AccPacFull'"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-20" > value="'AfterHoursBuildingAccess'"/> > </xforms:action> > <xforms:action ev:event="xforms-value-changed" > if="instance('fr-form-instance')/section-2/control-11 = 'Council-Services'"> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-17" value="'Contribute > MSAccess'"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-19" > value="'TimeManagerFull AccPacFull LaserficheFull '"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-20" value="'CitrixAccess > TM-Scheduler'"/> > </xforms:action> > > What we want is that when a selection is made, different select controls > values are set. And if a person chooses the wrong value in select1, that > all the controls are cleared and then new values entered. > > On first selection the appropriate checkboxes are ticked. When a selection > is made that does not set values, ticks are cleared except one of them? > Next selection more ticks. But when next selection is suppose to clear them > nothing happens - all ticks remain even though in instance inspector no > space seperated values appear for the select control. > > Is this something I am doing wrong or is this a known issue? Thank you. > -- > View this message in context: http://n4.nabble.com/Checkbox-Clearing-tp1477892p1477892.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Here is the attached file that we were testing in Form Builder/Runner - I commented out my redesign <!-- bsteuhl..... --> on control-11 (the control with the action has a comment with Check_Uncheck so you can find it easily). The commented out section works with the 'Section III Redesign' area of the xform. Just have not added in the ability to add a value to the list.
Thanks.
Brian Steuhl home office: 732-961-3187 From: Erik Bruchez [via Orbeon Forms (ops-users)] <[hidden email]> To: bsteuhl <[hidden email]> Sent: Fri, February 12, 2010 9:53:39 PM Subject: Re: Checkbox Clearing Brian, Can you send a simple form which reproduces this? -Erik On Thu, Feb 11, 2010 at 2:50 PM, bsteuhl <[hidden email]> wrote: > > In Form Builder I have the following code on a select1 control: > <xforms:action ev:event="xforms-value-changed"> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-17" value="''"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-18" value="''"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-19" value="''"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-20" value="''"/> > </xforms:action> > <xforms:action ev:event="xforms-value-changed" > if="instance('fr-form-instance')/section-2/control-11 = > 'Administration/Finance'"> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-19" > value="'GroupWiseFull AccPacFull'"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-20" > value="'AfterHoursBuildingAccess'"/> > </xforms:action> > <xforms:action ev:event="xforms-value-changed" > if="instance('fr-form-instance')/section-2/control-11 = 'Council-Services'"> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-17" value="'Contribute > MSAccess'"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-19" > value="'TimeManagerFull AccPacFull LaserficheFull '"/> > <xforms:setvalue > ref="instance('fr-form-instance')/section-3/control-20" value="'CitrixAccess > TM-Scheduler'"/> > </xforms:action> > > What we want is that when a selection is made, different select controls > values are set. And if a person chooses the wrong value in select1, that > all the controls are cleared and then new values entered. > > On first selection the appropriate checkboxes are ticked. When a selection > is made that does not set values, ticks are cleared except one of them? > Next selection more ticks. But when next selection is suppose to clear them > nothing happens - all ticks remain even though in instance inspector no > space seperated values appear for the select control. > > Is this something I am doing wrong or is this a known issue? Thank you. > -- > View this message in context: http://n4.nabble.com/Checkbox-Clearing-tp1477892p1477892.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws View message @ http://n4.nabble.com/Checkbox-Clearing-tp1477892p1503673.html To unsubscribe from Checkbox Clearing, click here. CheckBox.xhtml (80K) Download Attachment |
Free forum by Nabble | Edit this page |