Answers.Body: <p>I think I found the answer, correct me if I'm wrong but you can access your post data in your plugin with:</p>
  
  <pre><code>craft()-&gt;request-&gt;getPost('fields')
  </code></pre>
  
  <p>Not sure if this is the recommended way.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-02T09:39:51.947Z
Answers.LastActivityDate: 2017-03-02T09:39:51.947Z
Answers.UserDisplayName: Thaoms
Body: <p>I'm making my first Craft plugin.</p>
  
  <p>I have added custom fields to the right of an entry form with the <code>cp.entries.edit.right-pane</code> hook ("Share on..").</p>
  
  <p><a href="https://i.sstatic.net/NTOY0.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/NTOY0.png" alt="enter image description here"></a></p>
  
  <p>But I can't seem to find how to 'transfer' these values to my own plugin and to save them in my own table. The return value of several events I tried (ex. entries.saveEntry) are most of the time an EntryModel which do not include my custom fields.</p>
  
  <p>And I guess making a custom fieldtype is a little overkill?</p>
  
  <p>Thank you!</p>
  
Tags: <control-panel><saveentry><entry-form>
Title: How to submit custom fields that are added in the right pane to your plugin?
ThreadText: # How to submit custom fields that are added in the right pane to your plugin?
  
  (Asked by: username_0 on 2017-03-02)
  
  I'm making my first Craft plugin.
  
  I have added custom fields to the right of an entry form with the `cp.entries.edit.right-pane` hook ("Share on..").
  
  [![enter image description here](https://i.sstatic.net/NTOY0.png)](https://i.sstatic.net/NTOY0.png)
  
  But I can't seem to find how to 'transfer' these values to my own plugin and to save them in my own table. The return value of several events I tried (ex. entries.saveEntry) are most of the time an EntryModel which do not include my custom fields.
  
  And I guess making a custom fieldtype is a little overkill?
  
  Thank you!
  
  **Tags:** control-panel, saveentry, entry-form
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-03-02. Score: 2 | Accepted answer
  
  I think I found the answer, correct me if I'm wrong but you can access your post data in your plugin with:
  
  ```
  craft()->request->getPost('fields')
  
  ```
  
  Not sure if this is the recommended way.
  
  
  ---
  
  