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?
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');