| [SOLVED] Â Click Event - URL Field | 8/20/2017 13:50:39 | |
| PHPRunner General questions | ||
| Ssalus1 authorDevClub member Hi, | ||
|   | Sergey Kornilov admin 8/21/2017 | 
| You can implement a custom click event and in that event choose 'Run AJAX snippet' and in that snippet use displayPopup() function to open URL in popup. | |
| S | salus2 8/21/2017 | 
| Thanks for this info. What is the correct syntax to reference the database field with the URL in it? | |
|   | Sergey Kornilov admin 8/22/2017 | 
| See code examples at the end of this article, they show how you can access field values in ClientBefore and ClientAfter event: | |
| S | salus2 8/22/2017 | 
| OK, so the following Ajax Snippet works on a List View text field to open the URL in the Certificate field... | |
| H | Hertz2P 8/22/2017 | 
| OK, so the following Ajax Snippet works on a List View text field to open the URL in the Certificate field... var win = Runner.displayPopup( { url: row.getFieldValue("Certificate"), width: 800, height: 1000, header: 'GIA Grading Report', footer: '<a href="#" onclick="window.win.close();">Close window</a>', afterCreate: function(win) { window.win = win; } }); return false; .. but this only works if the Certificate field is included in the List View. I'd like to hide the Certificate field, is there a way to reference a database field not on the List View? Thanks 
 | |
| S | salus2 8/23/2017 | 
| Did not think of that. | |