1

we have a requirement to get the contents of the display form url

how do we achieve it ?

additional info: The form is customized using hilly billy

Things which we have tried

$.get("**listurl**/DispForm.aspx?ID=100", function(data) {
  var foo = jQuery("<div></div>").html(data).find(".viewrapper").html();
  jQuery(".viewrapper").append(foo);
  console.log(foo);
});

This would just show up the hillbilly html layout with no content in it

2
  • 1
    If you want to get a value of one or more fields, you shuold rather use rest api.
    – Bálint
    Commented Jun 24, 2019 at 6:15
  • Could you please elaborate? If you need to display that DispForm in popup for example, you may add ?IsDlg=1in URL
    – Salah
    Commented Jun 24, 2019 at 13:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.