automatic tab

Avatar

Avatar

Ali_Haider_shib

Avatar

Ali_Haider_shib

Ali_Haider_shib

09-11-2011

In case of multi text field how can I set automaticta tab? I think I have to set script for individuals field and also a  common script but how can I insert common script?

View Entire Topic

Avatar

Avatar

Steve_L_Walker

Avatar

Steve_L_Walker

Steve_L_Walker

09-11-2011

I am not sure I follow. The code below will take a string, break it into two pieces and then put the two pieces together with a horizontal tab in the middle.

// form1.page1.tf::exit - (JavaScript, client)

var str = this.rawValue;

var firstFiveChars = str.substring(0,5);

var remainingChars = str.substring(5,str.length);

this.rawValue = firstFiveChars + "\t" + remainingChars;

Steve