How to set the value of paragraph dynamically

I have a form with two text fields and a paragraph
how can i update the paragraph text when the value of the text fields change?
in dynamic event of the text fields there is no paragraph element to change its text

What exactly needs to be done? Do you want to show the text field content in the paragraph?

i need to display the total of the two text fields

Well, bind their values like:

{{field1.toNumber() + field2.toNumber()}}

You can do this using the formatter.

i know how to use the formatter :slight_smile:
but where do i add that code to update when the values of the text fields change?

When you bind them in the paragraph as soon as you type something else the value is updated automatically.

1 Like

i was adding the code in the innerHTML
adding it to the text property fixed it and its working nicely!

2 Likes