Dependent label

A place for users and developers of the Xataface to discuss and receive support.

Dependent label

Postby tomtom8 » Sun Dec 09, 2012 3:15 am

hello
Can I change the label based on the value of the previous field?
example:table item
Field1 = tipo_item; Label1 = Type, value = Pack HD
Field2 = serial; Label2 = Serial Pack HD
instead if
Field1 = tipo_item; Label1 = Type, value = Smart Card
Field2 = serial; Label2 = Serial Smart Card
and so on
tomtom8
 
Posts: 17
Joined: Mon Jul 30, 2012 6:56 am

Re: Dependent label

Postby shannah » Mon Dec 10, 2012 9:42 am

Take a look at the HTML source of the label you want to change and see if you can target it using jQuery/javascript (you should be able to). If you can find a way to dynamically change the text with JS, then you can trigger a JS function using the widget:atts:onchange handler for the widget.

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved