Page 1 of 1

Dependent label

PostPosted: Sun Dec 09, 2012 3:15 am
by tomtom8
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

Re: Dependent label

PostPosted: Mon Dec 10, 2012 9:42 am
by shannah
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.