Change Insert New Item button text

eugenio

Administrator
Staff member
You can edit any text label in your custom language file, in this case, in english_custom.php, you can add

$submit_buttons_ar["insert"] = 'THE TEXT YOU WANT';

Best,
 

business

Member
Hi,

Can I change the text of Insert a new item that you see when you create a new item?

I want to show the table name.

Insert a new Employee
Insert a new User

Thanks
 

eugenio

Administrator
Staff member
In english_custom.php you can do what you want, overriding the labels you have in english.php

You have the table name in $table_name, check if it is set first

if (isset($table_name) .....

this doesn't work when you are in a items table of a master/details table, though. In this case the variable $_GET['items_table_name'] will be set.

Best,
 

eugenio

Administrator
Staff member
All the labels can be changed in the same way, just look at the correspondent entry in english.php and overrides it in english_custom.php
 
Top