Change label in form

QuestionsChange label in form
Juan P Guiot asked 2 years ago
In a form (fancy) I change a data depending on another data:
jQuery("input[name=formula].FormElement").val(data[0].FORMULA);

But if I want to change the label based on a variable, is it possible?
sorry for my english, i'm using google translate
1 Answers
Abu Ghufran Staff answered 2 years ago

You can have this code inside afterShowForm event. e.g.

$opt["add_options"]["afterShowForm"] = 'function (form) { .... }';

To change label of field you can set, e.g. gender field:

jQuery("#tr_gender .CaptionTD").html("GENDER");
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff replied 2 years ago

You can also use following as well. $opt[“edit_options”][“afterShowForm”]

Your Answer

7 + 4 =

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?