Answers.Body: <p>A <a href="https://sprout.barrelstrengthdesign.com/docs/reports/custom-data-sources.html" rel="nofollow noreferrer">Custom Data Source</a> does not require any settings. If desired, you could create a Data Source that only had a title and did whatever logic and queries that you wanted behind the scenes.</p>
  
  <p>In Craft 2, <code>getOptionsHtml</code> returns null by default and shouldn't need to be set to anything in your Custom Data Source if that is desired:</p>
  
  <pre><code>public function getOptionsHtml()
  {
      return null;
  }
  </code></pre>
  
  <p>In Craft 3, the default is to not display any settings also:</p>
  
  <pre><code>public function getSettingsHtml()
  {
      return null;
  }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-09T14:28:37.517Z
Answers.LastActivityDate: 2018-07-09T14:28:37.517Z
Answers.UserDisplayName: Ben Parizek
Body: <p>Is it possible to create a custom data source that does not include end user options? I have tried not including the getOptionsHtml(), returning null, returning an empty string, and just return and the all fail.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-25T16:50:45.033Z
Comments.Text: Just to be specific, I believe this question is about Sprout Forms for Craft 2. The getOptionsHtml method returns null by default and should display no options if you don't override it or return null yourself.  What specific failure message are you getting?
Comments.UserDisplayName: Ben Parizek
Tags: <plugin-sproutforms>
Title: Custom data source without options - Sprout Forms
ThreadText: # Custom data source without options - Sprout Forms
  
  (Asked by: username_0 on 2018-06-24)
  
  Is it possible to create a custom data source that does not include end user options? I have tried not including the getOptionsHtml(), returning null, returning an empty string, and just return and the all fail.
  
  **Tags:** plugin-sproutforms
  
  > **Comments:**
  > **username_1**: Just to be specific, I believe this question is about Sprout Forms for Craft 2. The getOptionsHtml method returns null by default and should display no options if you don't override it or return null yourself.  What specific failure message are you getting?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-07-09. Score: 1
  
  A [Custom Data Source](https://sprout.barrelstrengthdesign.com/docs/reports/custom-data-sources.html) does not require any settings. If desired, you could create a Data Source that only had a title and did whatever logic and queries that you wanted behind the scenes.
  
  In Craft 2, `getOptionsHtml` returns null by default and shouldn't need to be set to anything in your Custom Data Source if that is desired:
  
  ```
  public function getOptionsHtml()
  {
      return null;
  }
  
  ```
  
  In Craft 3, the default is to not display any settings also:
  
  ```
  public function getSettingsHtml()
  {
      return null;
  }
  
  ```
  
  
  ---
  
  