<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>

CC BY-SA 4.0
2018-07-09T14:28:37.517Z
2018-07-09T14:28:37.517Z
Ben Parizek
<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>

CC BY-SA 4.0
2018-06-25T16:50:45.033Z
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?
Ben Parizek
<plugin-sproutforms>
Custom data source without options - Sprout Forms
# 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 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;
}


---

