I want to make a button/text link so that people can add notes to an article by clicking a text link, having that link open a fancybox or similar modal, have an HTML page render inside the modal (I'm going to embed a form in there -- just FYI, you don't have to make that it just has to let me put some HTML into the code it's going to load), and have the query string reference some specific content on the page (current page URL and preceding <p> tag text).
So if I have a page that looks like this on a URL that's "[login to view URL]":
<html>
<head></head>
<body>
<p>This is the text they're commenting on. {{your code works on the next text -- maybe off an <a> tag click? I'll leave that up to you.}} Want to add a comment?{{end your code's involvement}}</p>
<p>This is other text they're commenting on. {{your code works on the next text}} Want to add a comment?{{end your code's involvement}}</p>
</body>
</html>
When they click the text that says "Want to add a comment?" a modal will open with my HTML contained inside (including an embedded form). The URL of that modal will be static, but it needs to have a query string appended to it, something like this:
[login to view URL]
If they click on the text that says "Want to add a comment" in the <p> tag that contains "This is other text they're commenting on.", it would do the same thing except the query string would contain THAT text instead:
[login to view URL]
This query string info will be used to populate the information into hidden fields on the form I'm embedding in the modal HTML.
(if you're curious, you can read more about setting hidden field properties in HubSpot here: [login to view URL])
Your solution has to be something that doesn't involve any server side anything. I *think* this can be done with javascript that I can just embed on the page, but I'm not nearly good enough to do it myself.
***It has to function by being embedded on the page.***
I can't configure any server settings or anything, I have to be able to embed this on a page hosted on the HubSpot CMS. If you need to reference an external file, it has to be in one of the following formats so that I can upload it to my CMS's file manager:
[login to view URL]
Feel free to let me know if my cost range estimate for this project is too low. Also let me know if this doesn't make sense for any reason and you need clarification, I tried to be as specific as possible!