Last 4 Digits
Last Post 01-25-2009 07:03 AM by Chad Nash. 1 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Andy ThomasUser is Offline
skipping stones
skipping stones
Posts:13
Avatar

--
01-24-2009 01:40 PM

    Hi!

     

    I have two dynamic fields CCNumber and CCNumberL4. CCNumberL4 is hidden. When a user enters a CCNumber and tabs out, I need the last 4 digits of the entered CCNumber to be populated automatically in the CCNumberL4 field. Can anybody help me with the client side validation script that I need to use for this functionality?

    Any help is extremely appreciated. It's an emergency!

    Thomas

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    01-25-2009 07:03 AM
    I would start with first just moving it over... So...

    $(CCNumberL4) = $(CCNumber)

    Once you have that working you can tweak it to just include the last 4 from a substring, or trim function etc..

    Something like..
    $(CCNumberL4) = $(CCNumber).substr($(CCNumber_FieldID).length - 5 )

    That should do it...

    -Chad




    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi