I'm customizing the
DisplayForm of a list, and I want put a button on footer to
EditForm, but in the
ctx has no edit form url and no
How can I do this?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
var itemId = ctx.FormContext.itemAttributes.Id;
I have executed above code under
OnPostRender both. So you can use it where you need it.
I think it is easier to get from Query String rather than from
As per Asad's comment, Getting from Query String
var itemId = GetUrlKeyValue('ID');