Jump to content

How To Display Only Last Four Numbers?

Recommended Posts

Hi Cameron,

If I understand correctly, you want to display the last four numbers on a confirmation form and/or send it by email.

I think, you can add a Hidden Virtual field and send its value as a parameter to a confirmation form or add this value to a email.

You can use the following JavaScript code to place only four last numbers to the Hidden Virtual field:

function cards()
var lastfour = document.getElementById('InsertRecordFIELDNAME').value.substr(-4);

Please enter the name of your field instead of FIELDNAME and make sure that number of Hidden Virtual field is correct for your DataPage.

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.

Reply to this topic...

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