I want to lock my field for user can't press enter key on that field and see this bad view
If it is a number, use a number field; those are not multi-line by nature.
Otherwise, use an OnKeystroke and eat the enter/return keystrokes.
this is a text field sir
I do this work but the field goes down with enter key
Use the OnKeystroke event to not allow returns and enters.
I don't know how can I do that please learn it to me if you can because I don't do this work until now.
My method works without applying keystroke triggers...
except if you want to user to remain in the same field after accidentally typing enter or return...
I want when user press enter key my script is run and that field never and never goes to new line!
You'll have to specify that better and hbrendel's solution may actually work in your case then:
- do you want the script to run whenever the user hits enter in that field, even if they did not change anything?
In that case use the technique described by hbrendel and attach your script to the OnExit trigger of the field
- if you only want the script to run only when the user changes something in the field you will have to do more work
To understand the different types of triggers and events, download the sample file here:
FileMaker 14 Script Triggers - Soliant Consulting
It has every possible event covered and it is a great tool to learn what events fire in what order and when.
As you see now I can press enter key and go down and down and down and as you know this is very bad.
At first please learn me how can I make this bad interface?
I don't want user press enter and make my project to this
I've just handed you the tools... try it and let us know where you get stuck.
I can't understand how I should lock enter key but however thanks for
helping sir <3
Download the sample file, see how it is done, try it in your file.
but first you have to answer the questions I've outlined: under what conditions do you want your script to run and when not, especially around whether the user has changed the filed or has not changed the field. Different solutions for different scenarios.
At All of my fields in my project, I want to lock the enter key !
And where is the file sir?
aliabbassipro wrote: At All of my fields in my project, I want to lock the enter key !
That doesn't matter nor does it answer the question.
aliabbassipro wrote: And where is the file sir?
I can't download the file
any good idea?
I can't download the file
What does that mean?
I can't make this work BruceRobertson and my project is stoped
How is that relevant?
Your statement was:
"I can't download the file."
It is your job to download it; study it; and make the example technique work for YOUR file.
Failure to provide specifics/details of the problem/issues and resistance to putting forth the effort to learn your part does not equal a sense of urgency on our part.
The people in this forum have been more than generous in trying to help you and have provided many very helpful suggestions.
Saying "i can't make it work" does not help us get to a solution for you.
Your not a child. Explain to us what you tried and what exactly didn't "work"?
Demanding that we fix it for you will cause alot of silence and will cause those with the most knowledge to avoid your posts.
We get it that you are trying to get the solution to work and are frustrated but the frustration is about your lack of experience not any fault of ours.
Nuf said i think.
Retrieving data ...