Bubble Survey JS Integration (Creating a surveyJS plugin)

Hi,

I need help integrating survey JS into bubble.io. We have an event management website running, but we are planning on moving it into bubble’s no code platform. How do I go about integrating bubble.io into survey JS?

Best Regards,
Leul Shiferaw

Hi,
Which one of the libs do you want to integrate?

how much mission critical is integrating this library into bubble? If it handles core logic of your product and you have it already integrated in your current product why do you want to switch to bubble (integrating custom code takes extra effort and tradeoffs compared to yes-code solutions)? If it is not core logic why don’t you want to go 100% nocode and do it in bubble natively (it is 100% doable in bubble without code)?

I am about to release an official SurveyJS plugin (that includes a license). Should be live within the next 10 days

4 Likes

I don’t have a plugin but I’ve implemented into a recent bubble app. render - formBuilder

It’s somewhat simple.

1 Like

This looks really promising (assuming it’s your plugin).

Question: If I already have JSON schemas of existing SurveyJS surveys, is there a way with your plugin for me to pre-load those for users?

I read through the docs and if I’m interpreting this correctly I believe I should be able to load the existing JSON schema into a db field then populate the Form’s Survey Config field with that. If that’s the case this may be a viable solution for us. TIA

It does. I’ve been doing this on a project with this plugin. Works smoothly.

1 Like

Unfortunately we have (for now) moved away loading forms in this way (via JSON string). The issue being that it’s too easy to introduce SurveyJS features into either the Form Creator or Form Viewer that we don’t yet support in Bubble.

Instead the form are loaded as objects that have been stored using the Form (SurveyJS) datatype that is added to apps as part of the plugin. This effectively restricts forms to those created using the plugin’s Creator element, but ensures that we fully support their contents.

Hrmm ok. I think it still might actually work for my needs as long as I constrain to using only the subset of the SurveyJS schema that your plugin supports.

My situation is this: I’m using ChatGPT to generate SurveyJS schemas from forms inside of PDF’s. I’ve tested with the full SurveyJS online survey creator tool and this works brilliantly. I believe as long as I prompt GPT to constrain its “toolbox” so it only generates form elements that your plugin supports, then it should (in theory) work. Just to confirm: you guys haven’t otherwise deviated from the SurveyJS standard schema and have only excluded certain form elements?

This makes sense, and yes if you restrict the GPT output to the supported question types then this should work fine.

To make this possible for you we will need to add a workflow action that can ingest a JSON string and output a Form object that can be used to load the form.

Will add that into one of the next releases.

2 Likes

much appreciated. Will keep an eye out for it and monitor this thread for updates.