Hidden Rich Text field to show based on page URL
We are using one form for three different country pages. I have 3 rich text boxes that are hidden that contain a link specific to whichever country page( URL) the person accesses the form from so for example, if someone visits mysite.com/us/en/blog and goes to the form on that page, I need to have the embed form pick up the "us" portion of the URL and show the US specific text box. We then need the same to be for other country abbreviations as well. So the parameter rules to sho won't work, but was wondering if there was a specific script/way to help with this?
Thanks!