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 4 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 4 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 4 years ago

Thank You Sir .

G. Nalu answered 4 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 4 years ago

Hi,

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

Your Answer

16 + 19 =

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?