Change value of Plain text

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
danieljr
Posts: 4
Joined: Wed Jun 28, 2017

03 Jul 2017

Hello,

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

Thanks,

Daniël
Thank you,

Daniël Pharazijn | IT-department | AG Stedelijk Onderwijs Antwerp Belgium

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

03 Jul 2017

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 2703 times

Code: Select all

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

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests