Add bookmark data to URL link

New Contributor

I have a doc with an itemized pricing table. I have bookmarks defined for each line item so that the total can be calculated at the bottom. Below that I have a hyperlink to "submit a retainer," with a link to my payment page. I'd like to be able to insert a couple of variables in to the URL that I submit, from the calculated bookmarks. For example, the URL appended with ?amount=_____ and insert the data from the appropriate bookmark. This is a template, so I'm hoping to automatically generate the same link each time with the appropriate data inserted where it needs to be, just like I insert a cross-reference in other places in my doc. Is that possible? 

1 Reply
I would think that it should be possible using some visual basic code. Can you upload a copy of the document so that we can see exactly what you have.