Jump to content
  • 0

Accessing Virtual Fields


sgaylor

Question

HI, I'm working with virtual fields and have a very basic question. How do you access them in HTML?

I've tried something to display the value in a virtual field that is as simple as:

virtual2- [@cbParamVirtual2]

ThHe virtual2- lable is displayed but not the value in the Virtual2 field.

Any suggestions?

Thanks!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi,

You can get the value of any field(including virtual field) on the form by doing something like this in JavaScript which you insert in the header or footer of your datapage:

function VF()

{

var i = document.getElementById("cbParamVirtual1").value;

alert(i);

}

document.forms[0].onchange=VF;

Note that "cbParamVirtual1" is the name of my virtual field which you would replace with yours.

Hope this helps.

Thanks,

ANOM3009

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.

Guest
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.

Loading...
×
×
  • Create New...