Submit button

QuestionsSubmit button
Stephen asked 2 years ago

I want to have different text for the submit button when editing a record.

I can do this using the code:

$.jgrid.edit.bSubmit = “Upadte”;

However this also change the button when adding a new record, how can i change for just edit?

2 Answers
Abu Ghufran Staff answered 2 years ago

You can set following grid options:

$opt["add_options"]["bSubmit"] = "Add";
$opt["edit_options"]["bSubmit"] = "Update";
// 
$g->set_options($opt);
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Stephen answered 2 years ago

Perfect!

Thank you.

Your Answer

10 + 6 =

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?