When the page with the repeating group is loaded with a specific parameter (e.g., URL parameter holding the unique id of an rg;'s entry), use a workflow to scroll to the element or adjust the repeating group to show the item of interest via conditioning the rg’s row.
Use a custom state in a condition of the input to set its initial content. To append a link you could do something like multiline input’s value _ h t t p s / : etc etc
Your answer to my first question is very helpful, thank you for that The second one is a bit tricky though, because from what I understand, the initial content modifies the value of the input only if the input is empty. I have tried this method a couple of days ago, and it was modifying the content successfully when the input was empty, but if it contained some initial value, it wouldn’t append my link to that value. Any idea how this functionality could be achieved?
Thank you for your helpful response and the reference links that you attached. I learned some new things when I was reading them. As far as my second question goes, the multiline input could contain some initial text entered by an app user, and what I am trying to do is to give them an option to click “attach a link” button, select a specific option, and when they click that option, the link to that element in a repeating group would be automatically appended to the initial value of the input that the app user has previously entered.
I think the sensible thing would be to alter the text after the user has finished entering their initial text in the multiline input. Presumably you’re then sending this text with the appended link somewhere, either in your database, to an email, to their clipboard etc?
It could be sent either as a comment or as a direct message. So when the “send” button is clicked, there is a new thing created in the database (either a message or a comment), and then people who receive this message/comment would be able to click the link and be navigated to the item in a repeating group that the link is attached to.
By the way, I tested the solution you proposed for navigating to the specific element in the repeating group and it works! Now I just have to figure out how to append the link to an existing value in the input field.
In the workflow where you’re creating that message/comment in the database, you can use :append to add the link. If you’re looking to give users an option on whether to include the link, you could include a checkbox and then use the :formatted as text option when writing the entry in the database. For example:
Comment = Multiline Input A's value:append Checkbox A is checked:formatted as text
then, in the formatted as text dialog box, you’d set ‘yes’ as the link and leave ‘no’ as a blank
Imagine you are sending someone a message or writing a comment under a post. As you type the content of your message, you can click a “link” button that lets you choose from a list of links. When you click one of the links, it gets appended to the content of your message that you were typing. When you send the message, it should send the content of your message + the link that you attached to that message.
In the ideal scenario, I would like the value of that input to look like this message right here. You see how you have created a comment, and it also contains reference links within the Bubble library that I can click and navigate to these pages? I would like to achieve the same functionality. Ideally, the final output would look like this:
Hey Gregory, I think I got the solution for what you are looking for. Here is a link to the article that will explain how it works.
*Obviously, substitute the word link with the actual link to the article.
In any case, it sounds like you’re talking about ‘tagging’
(if you didn’t need the anchor text, and could live with just the link itself, then it’s simple to do in native bubble)
Ah, I see what you’re getting at. The easiest solution is probably to encourage your users to use BBCode, since Bubble’s text elements will recognise that automatically. So they’d need to put the link in the comment themselves, as below:
Here is a [url=https://example.com]link[/url] to the article
I don’t think there’s a good way to insert a link into text like your example without a user doing it themselves, because otherwise they won’t have control over where it appears.
Looks like I can enable users to automatically attach a link to their message, but only if there is no other content entered into that input. So If the input is empty I can let them attach dynamic links as “initial content” for that input, which doesn’t necessarily work if there is already an existing value in that input. Now that I think about it it would be nice if there was a plugin that would let you attach links as part of your input without typing it like this