![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
... attach a script to all scripts which leave the layout ... snip |
#4
| |||
| |||
|
|
Hi Patrick, "Is it possible to run a script when there is text typed into a field? " It is possible to have a script execute by using pause/resume and testing if the field is empty and if not empty, perform the script. This can be problematic, particularly in the case of typing a bunch of text because the pause/resume line will keep checking the field and if it detects ANY text, it will proceed - even if the User isn't finished! This process works well if you are selecting from a value list or entering a bar code - something where the data is instantaneous and completed quickly. The other problem using pause/resume is that, while typing, if it's exactly at the same time the pause/resume tests the field - typing would be interrupted, ie, it would just skip typing a letter for instance. If the User is typing regular text, this could drive them nuts! Usually, a plug-in is used to handle these things - such as ScriptIt but I haven't used it so can't give a good recommendation on it. Others speak highly of ScriptIt for these types of scripts. If you don't want to go with a plug-in, you might consider just putting a button next to the text field that the User can click - or attach a script to all scripts which leave the layout, testing the text field size. If you are attempting to limit text size, you can use Validation Maximum number of characters. You might also consider placing your calc next to the field. It won't update with the length until the User has exited the field, but at least it would show them how long it was. Sorry I have no better ideas for you. ![]() Cheers, LaRetta -- Posted via http://dbforums.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |