So I want to have a URL link to a saved search sho...
# general
t
So I want to have a URL link to a saved search show on a Vendor Record, so I created a custom field of type = Hyperlink, and copied the URL to the saved search into the fields default value, but when a user clicks on the link, it indicates that the search has expired. Any ideas on how I can accomplish this?
m
Make sure the url is “clean”. It should end with “…searchid =[yourid]&whence=“ It shouldn’t have all those other parameters like FILTER or SORT or GRID
Try to just load the search clean and fresh with no changes then copy and use that
Here’s a good overview of how to use URLs well https://www.mavencloud.tech/blogs/post/add-buttons-into-saved-searches
t
I think I tired that, but it did not work, I am not trying to get from a saved search to a record, I am trying to get from a Vendor Record (form) to a saved search, since there is no way to print the transactions sublist on a Vendor Record, I created a saved search to accomplish this.
l
manually copy paste the url in new tab. does it work
m
Yes sorry this was just some examples of how to properly use URLs. But anyway do you mind sharing the URL you have? Also try to use an inline html field and set the default value to ‘<a href=“[inserturl]”>[linktext]</a>’ And check the formula box
t
So I did what you suggested and when I go to save the custom field, I get the below error. Not sure what I am doing wrong,
m
before https you need two single quotes
''
and after whence=you need two single quotes
also surround the entire thing in single quotes
It should start like this '<a href=''https://
It should end like this &whence=''>Vendor Transactions</a>'
t
That looks like it worked, awesome thank you!