Caption Or Label Beside input field in the popup Add record or Edit Record

QuestionsCaption Or Label Beside input field in the popup Add record or Edit Record
Daniel G asked 3 years ago

Dear Sir Abu ,

How to add a caption or text Beside the input colom in the popup Add record or Edit Record , like sign required beside input colom ?

Thanks Sir

4 Answers
Abu Ghufran answered 3 years ago

You can have following:

$opt["add_options"]["afterShowForm"] = 'function (form)
{
jQuery("#tr_gender .CaptionTD").append("(x)");
}';

Where 'gender' is the value set in $col["name"]
and you can replace (x) with image for any html code.

And for edit dialog:

$opt["edit_options"]["afterShowForm"] = '…';

$g->set_options($opt);

G. Nalu answered 3 years ago

Thank You Sir .

G. Nalu answered 3 years ago

Sorry Sir ,

How If I add that by using the callback condition or onchange colom Condition in popup insert dialog or edit dialog ?

Thank You Sir

Abu Ghufran answered 3 years ago

Hi,

Please refer this faq example for onblur, onchange events.
http://www.phpgrid.org/faqs/#80

Your Answer

16 + 12 =

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 / 5. Vote count:

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

Let us improve this post!