populate column using a PHP code

Questionspopulate column using a PHP code
Georges asked 2 weeks ago

Hi,

In order to populate a field I need to execute a PHP code and this code must use some record fields. So I would like to transfer data to PHP, execute PHP, and go back with a result.

I can’t populate this field with other fields of the same record

I cant’ populate this field with a SQL statement

Thanks!!

 

1 Answers
Abu Ghufran Staff answered 2 weeks ago

Hi,

If you wish to populate a field using other entered fields in add/edit operation of grid, you can use a callback event onblur to call a JS function and then fill your desired field with entered data.

You can check sample here:
https://www.gridphp.com/docs/column-settings-faqs/#q-how-to-populate-other-column-based-on-previous-columns

Let me know if you need further assistance.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

19 + 13 =

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?