sjmatheson
Member
Hey there,
I'm after a bit of advice about how to do something specific with an element which refers to a value of a calc field.
I have a calc element (which calculates a value from 2 dropdowns) and I want another element which then relates to this calc value.
The value I want to display is a word (which in the background relates to a number, which in turn relates to the calc value).
So if the calc value is the value of '1', I want to display 'Low' in an element to be displayed in the form and in details view. If the calc value is '5' I want to display 'moderate' and if the calc value is '10' I want to display 'high'.
So...
1 = Low
5 = Moderate
10 = High
Just not entirely sure how to go about this.
Edit, should also mention the calc element is done with AJAX if that makes any odds. Would also want this new element to set its value via AJAX as well.
Thank you
I'm after a bit of advice about how to do something specific with an element which refers to a value of a calc field.
I have a calc element (which calculates a value from 2 dropdowns) and I want another element which then relates to this calc value.
The value I want to display is a word (which in the background relates to a number, which in turn relates to the calc value).
So if the calc value is the value of '1', I want to display 'Low' in an element to be displayed in the form and in details view. If the calc value is '5' I want to display 'moderate' and if the calc value is '10' I want to display 'high'.
So...
1 = Low
5 = Moderate
10 = High
Just not entirely sure how to go about this.
Edit, should also mention the calc element is done with AJAX if that makes any odds. Would also want this new element to set its value via AJAX as well.
Thank you
Last edited: