$request = AphrontRequest::getFromRequest(); if ($request->isDialogFormPost()) { // form was submitted via dialog box // execute code for dialog form submission } else { // form was submitted via regular form // execute code for regular form submission }In this example, we use the isDialogFormPost property to determine if a form was submitted via a dialog box. If it was, we execute code for dialog form submission, otherwise, we execute code for regular form submission. Package Library: Aphront library is a part of the Phabricator package, which is a set of open-source web applications for software development.