Form Field Focus

By default, every browser has a “blue-solid-border” surrounding a field which is in focused state to enter data. But in Scriptcase, especially a Text Field, it will not shown as default. To resolve this, please add a new style onLoad event like this:

For Single Record:
echo “<style> .scFormObjectFocusOdd{outline: auto !important;} </style>”;

For Multiple Record:
echo “<style> .scFormObjectFocusOddMult{outline: auto !important;} </style>”;

Oh ya, one more thing… don’t forget to Set Focus onLoad event, the 1st field to be entered on a Form, eg. for {emp_name} field:
sc_set_focus(‘emp_name’);

Happy Developing.

2 Likes