Hi,
You are in the right direction.
You simply should assign a class name to the field, through the attribute: “Add Css Layout Keywords”, to identify its label from the equations, for example: myfield
and then modify your equation like follow:
I will assume that the field for price is a calculated field, and that the price is calculated as fieldname1+fieldname2 (of course, the name of fields and the equation were selected randomly, only to explain the process), so the equation should be modified like follow:
(function(){
var price = fieldname1+fieldname2;
if( price == 10 )
{
jQuery( ‘.myfield label’ ).html(‘select color volume’);
}
else
{
jQuery( ‘.myfield label’ ).html(‘select other volume’);
}
return price;
})()
Best regards.