Page 1 of 1

Change value of Plain text

Posted: 03 Jul 2017
by danieljr
Hello,

Can I change the value of plain text in Forms Designer with Javascript?

Thanks,

Daniƫl

Re: Change value of Plain text

Posted: 03 Jul 2017
by Nikita Kurguzov
Hello, Daniel!

Yes, you can! It's very simple actually. Just add CSS class to the element and then select it with JQuery selector in your code:
Plain Text.jpg
Plain Text.jpg (109.37 KiB) Viewed 2709 times

Code: Select all

$(".my-text").text("Foo Bar!");