This topic is locked

Format

5/2/2010 1:11:40 PM
PHPRunner General questions
B
bobby123 authorDevClub member

Hi All
I am looking to set a format on a VARCHAR field which would have each new word starting with an Uppercase letter, has anyone done this or how could i acheive this
thanks
bobby123

A
ann 5/3/2010

Hi,

you can try the following code on the Events tab to the Add page: JavaScript OnLoad event

var ctrl = Runner.getControl(pageid, 'table_name');

ctrl.addStyle('text-transform: capitalize;');

ctrl.on('blur', function(e){ctrl.addStyle('text-transform: capitalize;');});
B
bobby123 authorDevClub member 5/4/2010



Hi,

you can try the following code on the Events tab to the Add page: JavaScript OnLoad event

var ctrl = Runner.getControl(pageid, 'table_name');

ctrl.addStyle('text-transform: capitalize;');

ctrl.on('blur', function(e){ctrl.addStyle('text-transform: capitalize;');});



Hi Ann
Thanks for the help, tried the above but didn't work, in fact the code didn't do anything
Thanks
bobby123

A
ann 5/4/2010

Bobby,
It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.