title: Magento 2 ; Unable to pass custom params into the Save Button Of a UI Form
body: <p>I want to pass a value/params via the save button of my ui adminform.</p>
  
  <p>i tried this:</p>
  
  <pre><code>public function getButtonData()
      {
          $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
          $request = $objectManager-&gt;get('Magento\Framework\App\RequestInterface');
          $id = $request-&gt;getParam('id');
  
          return
              [
                  'label' =&gt; __('Save'),
                  'class' =&gt; 'save primary',
                  'on_click' =&gt; '',
                  'sort_order' =&gt; 80,
                  'data_attribute' =&gt; [
                      'mage-init' =&gt; [
                          'Magento_Ui/js/form/button-adapter' =&gt; [
                              'actions' =&gt; [
                                  [
                                      'targetName' =&gt; 'thechateau_magenest_bookable_save',
                                      'actionName' =&gt; 'save',
                                      'params' =&gt; [
                                          true,
                                          ['multidome_id' =&gt;$id],
                                      ]
                                  ]
                              ]
                          ]
                      ],
  
                  ]
              ];
      }
  </code></pre>
  
  <p>I can indeed see the values in the save button of the phtml page.</p>
  
  <pre><code>&lt;button id="save" title="Save" type="button" class="action- scalable save primary" data-mage-init="{&amp;quot;Magento_Ui\/js\/form\/button-adapter&amp;quot;:{&amp;quot;actions&amp;quot;:[{&amp;quot;targetName&amp;quot;:&amp;quot;thechateau_magenest_bookable_save&amp;quot;,&amp;quot;actionName&amp;quot;:&amp;quot;save&amp;quot;,&amp;quot;params&amp;quot;:[true,{&amp;quot;multidome_id&amp;quot;:&amp;quot;1&amp;quot;}]}]}}"  data-ui-id="save-button" &gt;
      &lt;span&gt;Save&lt;/span&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p>however when i try to retreive these values it comes up null.</p>
  
  <pre><code>$request = $this-&gt;_objectManager-&gt;create('Magento\Framework\App\RequestInterface');
  
  
  $multiDome = $request-&gt;getParam('multidome_id');
  </code></pre>
  
  <p>I also tried to add it as part of the URL of the save button but it does not even show up on this:</p>
  
  <pre><code>public function getSaveUrl()
      {
          return $this-&gt;getUrl('*/*/save',['param'=&gt;'value']);
  
      }
  </code></pre>