Jump to content
  • 0

Copy Value Of Field On Datapage When Changed Or Via Button


P_barton
 Share

Question

Hi

Does anyone have any script which will do the following.

On a datapage field

When a field is changed on a datapage and the user moves off to the next field, copy the value of the field to another field.

Or even a button to do the copy.

Thanks in advance.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi,

 

What type of a DataPage do you use? If it is a Submission Form, I think, you can use the following code:

<SCRIPT LANGUAGE="JavaScript">

function fillSecondField()
{
document.getElementById("InsertRecordField2").value = document.getElementById("InsertRecordField1").value;
}

document.getElementById("InsertRecordField1").onchange=fillSecondField;
</SCRIPT>

Please enter names of your fields instead of Field1 and Field2.

 

I hope, it helps.

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

×
×
  • Create New...