go to a layout called ID card and just have the current record I was on.
I am enclosing the script I am trying, but it is pulling up all records. Any help is appreciated.
Did you notice that after you navigate to the related record, using the desired layout as target layout, your script then ...
- goes to another layout
- performs the step Show all Records
I do have it going to another layout but after it has stopped at a preview where I would like to save the current record as a pdf. However it is showing all records instead of just one.
If you see more than one record after your script enters preview mode and pauses, you either have more than one related record or there is something about that layout design which is making you think that you are looking at more than one record--such as a portal to a set of related records or something.
Note that Preview Mode, previews the entire found set, but when you save as PDF, you have the option of just saving a PDF of the current record or you can use "records being browsed" to save a PDF of the entire found set that you saw while in preview mode.
Why don't you just make a popover appear, with the ID card on it ?
That's what I do. Same for photo, when it's secondary info and not needed after initial contact.
Good Idea, I will try and figure it out. Thanks