Update Dynamic Title when value is changed in input

Hi All,

I’m sure this is a simple one. I have a title with a dynamic data binding in it. The data bind pulls a value X from a server action file. I also have a text input with default value of Y. When the page loads the title multiplies X by Y and prints the value. However I would like the user to be able to input a different number in the text input and for the title to dynamically update. I’m sure I’m missing something simple here.

Thanks in advance everyone.
Ivan

On your text field try adding an onchange dynamic event to your input field. Then onchange reload your server connect action.

This should update your title whenever the value in your input is changed.

If the input value is used in a dynamic expression, then it doesn’t need any dynamic events. It will change as soon as you enter a new value.

How does your dynamic expression look like?

I don’t believe in this case the input is dynamic. I believe it is just set with a default value?

1 Like

I’m not referring to a dynamic Input. What I am saying is if you are using your input value in an expression on the page like:

{{input1.value}}

Then whenever you change your input value, this expression result will also change.

1 Like

Ah, I see what you are getting at. That makes sense. You are correct as usual :wink:

1 Like

@Teodor & @brad Thanks a million for the help guys. All sorted.