Page 1 of 1

Row_CustomAction that supports input parameter from Modal Dialog

Posted: Mon May 31, 2021 9:02 am
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.

Re: Row_CustomAction that supports input parameter from Modal Dialog

Posted: Mon May 31, 2021 10:58 am
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().


Re: Row_CustomAction that supports input parameter from Modal Dialog

Posted: Mon May 31, 2021 12:56 pm
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)