I have a text element called “invoice link” in a focus group. When that text is clicked I would like for it to add a link to the rich text editor. The link will be to a page apart of my bubble app. I can’t seem to figure out how to do this. I figured out how to add text but not how to add a link to a page.
links are just text…except to function as a link they need the bbcode for enclosing the link…easy way to figure out that structure is to do a simple test using the rich text editor.
Create using the rich text editor a body of text and using the rich text editor add a link into the body of text and save that to your database via a datafield of type text.
Then you can examine how the bbcode is structured for enclosing the link.
After you now have the bbcode for enclosing a link, you can use for adding your link in the method you want, the find&replace operator, and what you will find is the link you want to add and what you will replace with is the bbcode for enclosing the link (plus the link itself as would be needed for the bbcode).
Since you already know how to add the text, it should not be difficult to apply the find&replace operator into that flow.
Hi Boston, thanks for the quick response. What if I don’t know what the link is going to be? The page I’m trying to link to is what I guess you would call dynamic page. The page type is “invoice”. So the link would be different every time. Basically what I’m trying to accomplish is for my user to be able to email their customer a link to the page that has the invoice for that customer. I’m so sorry if that doesn’t make sense I’m still a little new to bubble.
when you have the page setup for ‘invoice’ I’m assuming you are using the page content type and it is set to a content type that is a custom data type in your app database that you likely call invoice.
Within Bubble dynamic expressions there is a link for a data type if in the app there is a page that has content type set to that data type, so if you create the data entry for the invoice and then subsequently run the actions to send the user the link, you can reference the previous step (the step where you create the database entry of invoice) and then in the dynamic expression continue to ‘link’ and then you select which page you want the link to be (this is because you can have more than one page in an app that has the content type set to a data type).
What link am I sending the user? The user will be sending the link to the invoice in a email to someone who is not a user. Sorry you confused me a little with this reply. Is it possible to breakdown how I can accomplish this in steps. Like I said I’m new to bubble. If you need any information please let me know. I can take screen shots or record a video of anything you need.
This topic was automatically closed after 70 days. New replies are no longer allowed.