How to get selected value from another webpart?

  • 19 August 2022
  • 0 replies
  • 20 views

25289i89843489F64AE76C.png

I want to send a value from one form to another.

In this case i want to send "Watch" to the Title field at the bottom form.

I give the Title field JavaScript ID (ItemJS), then tried to add script:

 

var ItemName = document.getElementById("SPFieldText").innerText; NWF$("#"+ ItemJS).val(ItemName);

 

but it give error:

Uncaught TypeError: Cannot read properties of null (reading 'innerText') 

 

here is a reference for "SPFieldText"

25290i5F7C9B38999C1A59.png

 

Need help for my issue...


0 replies

Be the first to reply!

Reply