skuid.utils.redirect to a record page

  • 1
  • Question
  • Updated 5 years ago
  • Answered
Hi MyContactRow.Id has the right value, but when this is called,

                url: '/{{{'+MyContactRow.Id+'}}}',

It's not going to the contact record, instead it goes to the homepage.

Any Ideas?
Photo of Janet


  • 486 Points 250 badge 2x thumb

Posted 5 years ago

  • 1
Photo of J.

J., Official Rep

  • 7,960 Points 5k badge 2x thumb
Official Response
If MyContactRow.Id already has a value, you don't need the curly braces:
url:'/' + MyContactRow.Id,
skuid.model.Model.getFieldValue is the officially supported way to get field values (rather than referencing the row properties directly), but I think that will still work.