links within a form to anchors below...

User 506998 Photo


Registered User
164 posts

Just FYI... maybe the chief nerds have a better way, but this worked...finally, after a lot of trial and error.
To create links within a form to an anchor location on the same page as the form but below the form, I had to insert an html element.
Here is the code for one of the links within the form:
<div class="fb-static-text fb-item-alignment-center">
<p style="COLOR: #3d0061; FONT-WEIGHT: bold">
Be sure to check <a href="registration_form.php#discounts_anchor" target="_top">HERE</a> for available disounts offered apply them to your total.
</p>
</div>
Notice that I had to include the form page name with the anchor tag and also target to _top. (_self won't work)
Something else I did in order to get the text to center and format properly, was to look at the way Form Builder formatted plain text. I examined the html file within the exported form folder and copied a text element layer that I had built in and used that as the basis for my inserted html. This centered and formatted the text appropriately. Then I just added that link to the anchor as mentioned earlier.
Just thought I'd share before going to sleep.
User 187934 Photo


Senior Advisor
20,190 posts

I use this technique on a site I made that is heavenly dependent on the form builder. I use the form builder to create the forms quickly and then alter it to my needs which include replacing the myformname.php with a custom redirect after processing.
header("Location: myformname/myformname.php#DIV-ID");


That's why the form builder is totally awesome. Your can make it your form builder.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 506998 Photo


Registered User
164 posts

If you get time, would you care to elaborate on how & why you are doing that redirect...?
(...gotta remember to put my code in the box next time...)
User 187934 Photo


Senior Advisor
20,190 posts

The redirect is after the form is processed. I'm redirecting back to the form and giving feed back to the user telling them that the data was either added or changed depending on the situation. I have some pages that have 9 forms and the redirect allows me to also send them back to the exact location using the anchor DIV.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.