Custem event in the add/edit pop up form.

QuestionsCustem event in the add/edit pop up form.
Montemaggiore Sebastian asked 10 years ago

Hello. Imagine you are in the add/edit pop up form. The form has one field of type select and for example three more fields of type text. Is possible to capture the event when the user select a value in the select field in order to asign the others fields a custom value?.
Thanks!!.
Montemaggiore, Sebastián.

3 Answers
Abu Ghufran answered 10 years ago

Refer demos/dropdown/dropdown-callback.php. It loads values from sql query to the textboxes on change event.

Alternate, you can bind onchange javascript event too.
$col["editoptions"]["onchange"] = "fx(this)";

Montemaggiore Sebastian answered 10 years ago

Hello. "Demos/dropdown/dropdown-callback.php" does not appear in the library you sent me.
Thanks.

Abu Ghufran answered 10 years ago

Demo: http://phpgrid.org/demo/demos/appearence/dropdown-callback.php
Code: http://phpgrid.org/demo/demos/appearence/dropdown-callback.phps

Select row and edit using dialog, and try changing dropdown value.
It will load rest fields.

Your Answer

1 + 1 =

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?