Re: using java script to refresh a form
hi @EB77 every time you need to add JS code you need to encapsulate into a document ready event listener:
$(document).ready(function(){
// your code here
});
is your Modal an OOB modal coming via the Form? I have a code that might help but you might need to tweak a bit:
$(document).ready(function () {
AddRefreshOnModalClose();
});
var AddRefreshOnModalClose = function () {
$(".modal-form-details").on("hidden.bs.modal", function () {
$(".entitylist.entity-grid").trigger("refresh");
});
};
In this example, I have an Entity List and the user can open the record details, which opens in a Modal Pop-Up.. once it's closed, I am refreshing the Entity List