Hello everybody!
I have been searching for a solution to this but with no luck
I am trying to do the following thing:
Elements on the page:
- An input slider (#slider1)
- A text field (#text74)
- A dataset on the page (#dataset1)
What I would like to do is changing the text when changing the slider value (#slider1). I already know how to trigger a function using the onChange according to the value.
However I cannot find a way to retrieve a specific text from a richText column inside the dataset and inserting it into the text field (#text74).
An example of the code:
export function slider1_change(event) {
let value = $w("#slider1").value;
if (value >= 0 && value < 1) {
// RETRIEVE RichText IN RAW 1, COLUMN 2 FROM DATASET (#dataset1) INSERT THAT RichText IN THE TEXT FIELD(#text74)
} else if (value >= 1 && value < 2) {
// RETRIEVE RichText IN RAW 2, COLUMN 2 FROM DATASET (#dataset1) INSERT THAT RichText IN THE TEXT FIELD(#text74)
} else if ...
};
I have tried several options but I cannot find a way to retrieve that text
Thank you in advance for your help!
Peter