FLOATING TEXTS
I've created a form using floating texts. One of the fields is a dropdown list with two options: One (1) or Two (2). I labeled this as: fltObligate. The other field is a floating text field. I labeled as: fltAmount. What I'm trying to do is this: if I make a selection from the dropdown list, I would like it to return an amount value in fltAmount.
So, if I choose "One (1)", I would like it to insert an amount of "$10,000". Similarly, if I choose "Two (2)", the amount would be "$20,000".
I was able to do this in Adobe DC. However, I wanted to use the floating text feature in AEM. Here's the code I used for Adobe DC.
var Obligate = this.getField("Obligate").value;
if (Obligate=="One (1) Year") event.value = "$10,000";
else if (Obligate=="Two (2) Years") event.value = "$20,000";
else event.value = ""
Can anyone assist in converting this code to AEM?






