RSD2 Help. Access a page only after...

User 2477927 Photo


Registered User
23 posts

Hope someone can help. Please bear in mind I am a total novice here!

I want to create a page on my website where potential customers can download manuals etc, but only after entering their email address so I can add them to my CRM.
I can capture the email address into the CRM from a simple web form structure. (CRM has an embedded code to do this which works).
I then need a button that will reveal the rest of the page once a valid email is entered.

Using something like the Accordion Structure component in RSD2 but with a condition on the reveal button would be perfect.

Many Thanks in advance
User 2699991 Photo


Registered User
5,400 posts
Online Now

Philip Brunton wrote:
Hope someone can help. Please bear in mind I am a total novice here!

I want to create a page on my website where potential customers can download manuals etc, but only after entering their email address so I can add them to my CRM.
I can capture the email address into the CRM from a simple web form structure. (CRM has an embedded code to do this which works).
I then need a button that will reveal the rest of the page once a valid email is entered.

Using something like the Accordion Structure component in RSD2 but with a condition on the reveal button would be perfect.


Many Thanks in advance


I have done something similar that's if I understand what you want to do correctly

What I did
I created a simple form in WFB that had just e-mail field and the google recaptch thingy (v2) then I configured the form to go to a confirmation page (which in your case would be the page where they can download the manuals etc) that I had made with the details that I wanted them to have, rather than the default confirmation page that WFB has.

By placing the Google recaptcha thing on the form I hope that should stop any spammer bots etc from ---- well basically spammiing - so far so good no spamming only real people getting through (ohh and I get an e-mail showing someone has filled out that form)
Ooh and the form opens over the first page as a full screen model window so that they have to complete the form and the recaptcha thingy if they dont they are given an error message and all they can do is close the modal winow which then takes them back to the page they were on

Hope all thats clear enough
Wayan
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS


A simple quick way to contact me
https://mawarputih.coffeecup.com/forms/contact-wayan/
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

In your data base setup a user_level column. Set that to default 1. Then in your pages where your using the email address use the userlevel to hide and show content. This way down the road you can setup premium content and use higher user levels.
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 2477927 Photo


Registered User
23 posts

http://ccfconsultants.coffeecup.com/help%20please.html

This is the kind of thing I want to achieve.
The 3 buttons of the collapsible groups should only work if there is an email entered in the form above.

It seems so close!!
User 515127 Photo


Registered User
116 posts

Hi Philip,

Part of the reason that this is hard to explain (from my perspective) is that there are so *many* ways to do what you are describing. There is no one right way.

The way I would do the conditional display of downloads is to set up the form to validate the email, and design the conditionally displayed stuff below, setting the display property to none. Upon receiving a valid email address, I would test to see if that email was already in the database - if not, then save the email to my database and return the auto-number assigned primary key of their user entry - if it already existed, just return their user primary key, and I'd use that key to track whatever they clicked on and downloaded to give me a clue regarding what they were interested in, putting their selection in a transaction table, with their primary key as a column and the key value of their selection as a column, and a timestamp - but that may be overkill for what you wish to achieve.

Let's say we have three buttons that show in the first stage after submit is successfully executed, each button covers a category. Below the container that we now show that has the buttons are three hidden rows (display='none') that contain however many links to (for example) PDF manuals, maybe embedded in <ul> (unordered lists). Click the category button, js runs that sets all content row display='none' then turns on the selected row. By turning off all the rows, then turning on the selected row (display='block') we never have more than one row displayed.

But again that may be overkill - maybe you just have one row of downloads to display, in that case, just turn that row's display on after receiving a valid email.

The button executes the appropriate code to do the database work and update the desired display properties.

The javascript call you use to change the row style display property to none might look something like this.

document.getElementById("manRow1").style.display = "none";

or to turn a row on -

document.getElementById("manRow1").style.display = "block";

Hope this helps,

Regards,
Gordon



Philip Brunton wrote:
http://ccfconsultants.coffeecup.com/help%20please.html

This is the kind of thing I want to achieve.
The 3 buttons of the collapsible groups should only work if there is an email entered in the form above.

It seems so close!!
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Try this tread.
http://www.coffeecup.com/forums/web-for … rm-in-rsd/
I have a form on there where I'm checking if the email exist.
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.