Row_CustomAction that supports input parameter from Modal Dialog

Post Reply
mobhar
User
Posts: 11727

Row_CustomAction that supports input parameter from Modal Dialog

Post by mobhar »

Please add the option in Row_CustomAction that has ability to receive the input parameter from Modal dialog.

The idea is as follows:

  1. The end-users click the button that will trigger the Modal dialog to be shown up, and they have to input something in it,
  2. They click on Submit button in that Modal dialog, and this input param will be supplied into code in Row_CustomAction server event,
  3. The rest of process will be done by the code in Row_CustomAction server event just like the existing condition.

arbei
User
Posts: 9384

Post by arbei »

If you use modal dialog with input, you need to submit it, then you may get the input in Row_CustomAction by Param().


mobhar
User
Posts: 11727

Post by mobhar »

That would be better if the Modal dialog input parameter (similar to Javascript promt() function) has already been handled by the constructor of ListAction class, for example, by adding an additional param in it, let's say $modal_input = true as the last param:

function __construct($action, $caption, $allow = true, $method = ACTION_POSTBACK, $select = ACTION_MULTIPLE, $confirmMsg = "", $icon = "fas fa-star ew-icon", $success = "", $modal_input = true)


Post Reply