June 6, 20169 yr Hello, I want to create a script trigger which opens a layout based on account name ,create new record and put cursor in first field of the new record Now, I was able to direct user to specific layout and also created new record using New Record/Request function but somehow it doesn't put cursor in the first field , instead it selects whole record . Note: I also have script triggers attached to first and second field which runs on exiting the fields. (I don't think they affect anyways , but just mentioned to give idea)
June 6, 20169 yr Did you try a script step to go the field in order to select the first field in the first record?
June 6, 20169 yr This is quite confusing. 1 hour ago, dav1089 said: I want to create a script trigger which opens a layout based on account name ,create new record and put cursor in first field of the new record A script trigger does none of these things. A script trigger triggers a script - and the script does the actions mentioned. 1 hour ago, dav1089 said: I was able to direct user to specific layout and also created new record using New Record/Request function but somehow it doesn't put cursor in the first field , instead it selects whole record . There is no such thing as "selects whole record" - only one field can be active at a time. After creating a new record, the cursor goes automatically to the first field in the layout's tab order. If you don't see it there, then either you don't have any fields in the layout's tab order, or you have something extra going on that takes the cursor out of that field. Edited June 6, 20169 yr by comment
June 6, 20169 yr Author 1 hour ago, dav1089 said: instead it selects whole record When script runs, it just highlights the whole record instead of putting cursor in first field In Layout Mode: My Script Steps: (This script is triggered "OnFirstWindowOpen" Trigger) Edited June 6, 20169 yr by dav1089
June 6, 20169 yr Author 2 minutes ago, webko said: Have you looked at the Go To Field script step? Yes , I tried that already ...
June 7, 20169 yr Author 16 hours ago, webko said: And that field allows data entry? Yes it does, it's a foreign key text field, you see in above image the first line of record which has "NONDKT" value, but when script ran it added new record but didn't put cursor in the first field
June 7, 20169 yr Well, my experience differs from yours then - the following definitely works for me:
June 7, 20169 yr Author 18 minutes ago, webko said: Well, my experience differs from yours then - the following definitely works for me: This works fine when I don't put the new record script step on firstwindowopen trigger and put it on onlayoutenter ...
Create an account or sign in to comment