Dependent label
Archived from the Xataface Users forum.
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
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