This topic is locked

How to use a copy of the edit page when clicking on the record field on the list page

1/5/2021 12:39:50 PM
PHPRunner General questions
M
MrMyszek author

I cannot allow users to edit all record fields only selected. So I created a copy of the edit page and would like to call it up by clicking on the selected fields on the list page. When setting the click properties for each field I would like to assign an appropriate edit page. How to call them. The default edit page for the entire record is called.
Thanks for your help.

Sergey Kornilov admin 1/5/2021

For click actions, we do not currently have an option to select which additional page to open.
You can make it work though using AJAX code snippet under click actions. Normally the edit page URL looks like

tablename_edit.php?editid1=12345


where 12345 is the ID of the current record. To open the page named edit2, for instance, use the URL like this:

tablename_edit.php?editid1=12345&page=page2


You will need to get the record ID in the server part of the event, pass it to ClientAfter, craft the proper URL there, and redirect the user there.
More info:

https://xlinesoft.com/phprunner/docs/working-with-additional-pages.htm