Can someone help me use JavaScript and the Substring function to show only the last 4 digits of the SSN in my form?
Thank you
The textBox still does not show the last 4 only...it shows the whole field function FORM_OnAfterTransaction(data) { lawForm.getDataValue("text168").substring(7,11) ; alert('Hello'); }
I agree with Jay, you do not want to use the setDataValue or setFormValue if the Change function is available because it will try to update the SSN with the truncated number.
It is better to create a new field and display the truncated value of the SSN number in it.