Thanks for helping me so far; I can’t see how that could possibly work. I’d need to log in to my bubble app editor, create a new group, build a form, add the conditionals, hide/show etc, show this group if search value contains this group, hide if not, to over thousands of articles, one by one.
That would take an unbelievable amount of time and also that way doesn’t allow a normal user to create an article themselves.
I’ve done the following:-
- Kept the articles in the repeating group
- Instead of one rich text box I have two with a group box called ‘Form/Button Holder’ in between them (this will hold a button or a form)
- Added a new thing to the Help Centre data called ‘Has button/form’ as a yes/no field
- Had a tick box in the admin panel that says “tick if this article will contain a button or form”
- The person creating the article will write their article on rich text box 1 and when they want a form or button to follow mid article they stop writing in rich text box 1 and continue in rich text box 2
The form or button would then need to be built by me by creating another group inside that group between the texts for example the group would be called “Name Change Form”. I’d then build the form with the conditions “When Parent Groups’ Help Centre’s Unique ID is [long number] this form is VISIBLE” and “When Parent Groups’ Help Centre’s Unique ID is not [long number] this form is NOT VISIBLE”. the group that holds that group (Form/Button Holder Group) conditions would then be "When Parent Groups’s Help Centre’s Has button/form is YES this form is visible’ and "When Parent Groups’s Help Centre’s Has button/form is NO this form is not visible’
Both groups have ‘Collapse height when hidden’.
The above works, but the issue is I have to build the form or add button and conditions myself, and it’s a workaround. Ideally the user would build their own form/button and it would add itself to their article in the right place saving me sitting there building each form one by one and playing around with conditions and groups which would be a nightmare.
EDIT: This is the quickest way I’ve found by far. It also allows you to edit the article once it’s live with a click of a button on the condition you’re the author. All articles are in the database which can be exported easily and you can import articles directly in, the help centre runs well and the only things that require manual building are the forms and buttons. To bypass this you use an external form builder embedded into the admin panel that matches your design. You’d then build the form easily and quickly, take the url of the form and place it into a text input field in your admin panel that gets saved with your article. This url is saved in a field in your help centre database. You then add an iframe with modified iframe code so that it’s longer and shorter depending on the form to your “button/form holder” group that pulls the form url into it per repeater cell and voila works! I prefer to manually add them without the external form builder but it does what I want.
Thanks @boston85719 for your input