What is the Feature Validator Popup?

With the feature validator popup, you can show a message to your users when they try to access a feature or perform an action that is not yet available. The message includes a rating scale from 1-10, allowing users to indicate how much they want the feature, and a form for them to enter their email to receive updates about the feature's development.

Setting up the popup

On your website, add these two scripts to the end of your body tag.

    <script src="https://do.featurebase.app/js/popup.js"></script>
<script>
window.FBPopup.init({
organization: "yourorgname"
});
</script>

Here are the possible settings you can change:

Parameter

Description

organization

The organization parameter specifies the name of your organization. For example, if the URL of your board is yourorgname.featurebase.app, then you should use yourorgname as the value for the organization parameter.

Opening the popup

To open the popup, you can add a button or other HTML element and attach an onclick event listener to it that calls the following JavaScript code:

window.postMessage({
target: 'FeaturebasePopup',
data: { action: 'openPopup', submissionId: 'yourSubmissionId' },
});

Example in website:

<button onclick="openPopup()">Open Popup</button>

<script>
function openPopup() {
window.postMessage({
target: 'FeaturebasePopup',
data: { action: 'openPopup', submissionId: 'yourSubmissionId' },
});
}
</script>

Property

Description

submissionId

To obtain the submission ID of a post, you can view the post on your board and look for the ID in the URL. For example, if the URL of a post is yourboard.featurebase.app/submissions/6378cf72b80e741064713466, the submission ID is 6378cf72b80e741064713466.

And that's it! You can always reach out to us if something was confusing or you're having trouble setting this up.

Did this answer your question?