You can change the title of dialog by editing the language file.
File location: jsi18ngrid.locale-en.js
edit : {
addCaption: "Add Record",
editCaption: "Edit Record",
…
Hi guys. I did a search for a PHP way of changing the Title for Modal Edit/Add forms and couldn’t find anything.
Although I found the relevant file above, this seems like it would change the title on all Edit and Add forms.
I’ve found a way to change the Title on a specific Edit and Add form using a combination of PHP Grid options and Javascript:
$opt[“add_options”][“afterShowForm”] = ‘function (form)
{
$( “#edithdlogin_table > span”).text(“Create new user”);
}’;
$opt[“edit_options”][“afterShowForm”] = ‘function (form)
{
$( “#edithdlogin_table > span”).text(“Edit user”);
}’;
The JQuery selector I obtained by right-clicking on the title and used Copy Selector in the Developer console.
Hope this helps someone.