Changing the title on the Edit Record Form

QuestionsChanging the title on the Edit Record Form
Don Mangold asked 9 years ago

Is there a way to change the title on the Edit Record Form for a grid?


2 Answers
Abu Ghufran answered 9 years ago

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",

pcatt answered 9 months ago

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.



Your Answer

11 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?