Jump to content
  • 0

Move value from a Virtual Field to a Text Field



Hi, I'm using this code to transfer a value FROM a Virtual Field (Virtual17) TO a Text Field (Asset_Net_Cost):-

document.querySelector ('[id^='InsertRecordAsset_Net_Cost']').value =
document.querySelector ('[id='[@cbParamVirtual17']').value

I just can't get the syntax right. I've been at this for hours... Any help would be greatly appreciated.

Best regards, Ron

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi, solved. I slogged away at this and eventually found the solution so if there's anyone who has the same problem, here's the correct syntax:-

document.querySelector("[id='InsertRecordAsset_Net_Cost']").value =

Best regards, Ron

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...