URL redirect auto-populate field

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
I have save button on a popup that redirects to a URL for a new Case page. I included the Account ID as a parameter in the redirect URL.

URL: apex/skuid__ui?page=NewCase__DA&AccountId={{Account_Name__r.Id}}

On the new Case page I added a condition to model where the AccountId = (param) AccountId. This is auto-populating the Account field with the actual ID instead of the account name. The field on my page is AccountId and normally Skuid will render with the name and not the ID. Is there something I overlooked in order to have the name displayed?

Photo of Jason C

Jason C

  • 682 Points 500 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
How has the template we're seeing the picture of been set up? Could you share it's configuration?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
That's because there isn't anything to reference the id to. Add an account model prior to this model that queries the Account with the the same parameter. Then it'll work.
Photo of Jason C

Jason C

  • 682 Points 500 badge 2x thumb
Thank you Pat! I've been staring at this for 2 days now.