This topic is locked

Select partial text on text box when adding / editing

8/25/2013 9:14:18 AM
PHPRunner General questions
A
almonddgr8 author

Hi,
I have a set on the visual editor the properties of a text field to have a default value of "XXXX-".date("Y") then, I wanted to have a auto-select or highlight the "XXXX" portion of the text field when adding or editing. So that user will have an easy way on adding/editing records because the year portion is just like a constant value.
I hope this can be achieve easily.
Thanks and more power to phprunner.

C
cgphp 8/25/2013

You can read about "Default value" here http://xlinesoft.com/phprunner/docs/_edit_as__settings.htm
You can highlight the XXXX portion of text using some custom javascript code.

A
almonddgr8 author 8/25/2013



You can read about "Default value" here http://xlinesoft.com/phprunner/docs/_edit_as__settings.htm
You can highlight the XXXX portion of text using some custom javascript code.


Thanks for your reply but unfortunately we differ from phprunner versions I'm only on 6.0 you have 6.2. Anyways, no worries about the default value of the text field, I've got that covered.
You've mentioned that I can highlight XXXX by using custom javascript code. I'm not really not good in javascript but I know some coding myself, can you somehow guide me to the right direction on achieving this.
Thanks again.