How to personalize the content users see with a set of questions/answers?

Hi
I have built my website using dreamweaver CS5.5 and would like users to be able to personalize the content that is displayed. Users will first see a page with three questions. Once they have answered the questions, they should then click 'submit' and be transferred to the site with the information most relevant to them, depending on the answers they gave to the questions.
I know how to create froms and the questions with radio buttons, but I cannot figure out how to make the 'Submit' button link to different sites depending on the answers that users have given.I guess this will need some kind of if/then rule in JavaScript that is then linked to the 'Submit' button? I am really not sure how to best do this.
(Note: there is no need for the answers to the survey to be saved as data anywhere if that makes life easier)
Any advice would be greatly appreciated!

Right, here we go, this is the code for the question form (currently still with spry validation):
<form id="Personalize_OvDex" name="Personalize OvDex" method="post" action="">
<p>Question 1: Do you have a faulty gene or a family history of Lynch Syndrome?</p>
<p><span id="spryradio1">
  <label>
    <input type="radio" name="Question1" value="BRCA1" id="Q1_BRCA1" />
    Yes, I have a BRCA1 faulty gene</label>
  <br />
  <label>
    <input type="radio" name="Question1" value="BRCA2" id="Q1_BRCA2" />
    Yes, I have a BRCA2 faulty gene</label>
  <br />
  <label>
    <input type="radio" name="Question1" value="Lynch" id="Q1_Lynch" />
    Yes, I am from a Lynch Syndrome family</label>
  <br />
  <label>
    <input type="radio" name="Question1" value="unclear" id="Q1_unclear" />
    Don’t know, I have not been tested for a faulty gene or my genetic test </label>
  <br />
  <label>
    <input type="radio" name="Question1" value="negative" id="Q1_negative" />
    No, I have been tested and no faulty gene was identified</label>
  <br />
  <span class="radioRequiredMsg">Please make a selection.</span></span></p>
<p>Question 2: Have  you ever had breast cancer? </p>
<p><span id="spryradio2">
  <label>
    <input type="radio" name="Question2" value="noBC" id="Q2_noBC" />
    No, I have never had breast cancer</label>
  <br />
  <label>
    <input type="radio" name="Question2" value="BC" id="Q2_BC" />
    Yes, I have had breast cancer</label>
  <br />
  <span class="radioRequiredMsg">Please make a selection.</span></span></p>
  <p>Question 3: How  old are you?</p>
<p><span id="spryradio3">
  <label>
    <input type="radio" name="Question3" value="u35" id="Q3_u35" />
    under 35</label>
  <br />
  <label>
    <input type="radio" name="Question3" value="35to39" id="Q3_35to39" />
    35 to 39</label>
  <br />
  <label>
    <input type="radio" name="Question3" value="40to49" id="Q3_40to49" />
    40 to 49</label>
  <br />
  <label>
    <input type="radio" name="Question3" value="o50" id="Q3_o50" />
    50 or over</label>
  <br />
  <span class="radioRequiredMsg">Please make a selection.</span></span></p>
  <input name="" type="submit" value="Submit now" formaction="home.html" />
</form>
The sets of answers that correspond to a page is made up of "home_" and then the 'value' of the answers divided by underscores. So for example if someone answers Q1 with BRCA1, Q2 with noBC and Q3 with u35, the page that would link to is called home_BRCA1_noBC_u35.html
Here's a list of the pages for which that above logic works perfectly:
home_BRCA1_noBC_u35.html
home_BRCA1_noBC_35to39.html
home_BRCA1_noBC_40to49.html
home_BRCA1_BC_u35.html
home_BRCA1_BC_35to39.html
home_BRCA1_BC_40to49.html
home_BRCA2_noBC_u35.html
home_BRCA2_noBC_35to39.html
home_BRCA2_noBC_40to49.html
home_BRCA2_BC_u35.html
home_BRCA2_BC_35to39.html
home_BRCA2_BC_40to49.html
home_Lynch_noBC_u35.html
home_Lynch_noBC_35to39.html
home_Lynch_noBC_40to49.html
home_Lynch_BC_u35.html
home_Lynch_BC_35to39.html
home_Lynch_BC_40to49.html
There are just a few exceptions in which it doesn't matter for one or more questions what people answer (then the page name doesn't include the value for that answer). These are:
home_BRCA1_o50.html (This page will appear for those answering Q1 with BRCA1, Q2 with either noBC or BC, and Q3 with o50)
home_BRCA2_o50.html (This page will appear for those answering Q1 with BRCA2, Q2 with either noBC or BC, and Q3 with o50)
home_Lynch_o50.html (This page will appear for those answering Q1 with Lynch, Q2 with either noBC or BC, and Q3 with o50)
home_unclear_noBC (This page will appear for those answering Q1 with unclear, Q2 with noBC, and Q3 with any answer)
home_unclear_BC (This page will appear for those answering Q1 with unclear, Q2 with BC, and Q3 with any answer)
home_negative (This page will appear for those answering Q1 with negative, Q2 with either noBC or BC, and Q3 with any answer)
Hope this includes all the info you wanted. I know it's quite complicated.

Similar Messages

  • Different user options with different sets of questions

    Is there a way I can have two different options and when the user clicks on option A a whole set of questions/form fields appear. Or if they select option B a whole different set of questions/form fields appear?
    How would I go about programming something like that?
    Hopefully I was clear enough. Thanks so much! :)

    Hi Arnold,
    SAP Logon Tickets issued by the Portal contain two user ids, basically one for Java Systems and one for ABAP systems. See also note 843061 for details.
    You do not need passwords for the reference system, if the user mapping is maintained by the user administrator, and the UM property ume.usermapping
    .admin.pwdprotection is set to false, see http://help.sap.com/saphelp_nw04/helpdata/en/fe/d22a41b108f523e10000000a155106/frameset.htm. If you set the mapped user id programmatically, or if you retrieve it from an LDAP server, you also do not need to verify the ABAP password of the user (see https://media.sdn.sap.com/javadocs/NW04/SP12/ume/index.html and http://help.sap.com/saphelp_nw04/helpdata/en/0b/d82c4142aef623e10000000a155106/frameset.htm).
    Best regards,
    Joerg

  • When I get messages from Barnes and Noble, the text is blank. If I hit reply or forward, I can then see the content. This only happens with Barnes and Noble. Any suggestions on how to view the content?

    When I get messages from Barnes and Noble, the text is blank. If I hit reply or forward, I can then see the content. This only happens with Barnes and Noble. Any suggestions on how to view the content?

    I'm sorry, but your sister, unless she had already turned on the "Find my iPhone" feature and the person who took the phone has not disabled it, is out of luck. She should report the theft to local police authorities, including the serial number of her iPhone. While her experience is unfortunate, there are good reasons why Apple cannot do anything else about it.
    I hope she gets her phone back.
    Best of luck.

  • I have a new ipod and when I sign in to Words with Friends it says that user name is already in use. How can I continue using the same user name with a different ipod?

    I have a new ipod and added all my apps to it. When I sign in to Words with Friends it says that "user name is already in use" because it is linked to my old ipod. How can I use the same user name with my new ipod?

    Was the iPod setup via iTunes on this computer?
    Setup via wifi?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?           
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        
    Try syncing using the manual method                 

  • My iPhone 5 has broken and is being replaced with a new iPhone tomorrow. However, My carrier (orange) will b picking up my broken iPhone and I am unsure how to secure the content and icloud data on the broken phone. Is there a way to display the data?

    My iPhone 5 has broken and is being replaced with a new iPhone tomorrow. However, My carrier (orange) will b picking up my broken iPhone and I am unsure how to secure the content and icloud data on the broken phone. Is there a way to disable the data held on it and ensure that if it is fixed, nobody can use/see my data and access my account?

    Hi Gazpan,
    Thanks for visiting Apple Support Communities.
    I recommend using the steps in this article to back up your iPhone if possible:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    You may also find this advice helpful for your situation:
    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht5661
    If you no longer have your iOS device
    If you're using iCloud and Find My iPhone on the device, you can erase the device remotely and remove it from your account by signing in to icloud.com/find, selecting the device, and clicking Erase. When the device has been erased, click Remove from Account.
    If you're unable to complete either of the above steps, you should change your Apple ID password. Changing your password won't remove any personal information that is cached on the device, but it will make sure that the new owner can't delete your information from iCloud.
    Cheers,
    Jeremy

  • How to get the contents associated with a component.

    How to get the contents associated with a component.
    Like i have 2 buttons and i want to get the contents associated with these button without clicking them i.e without firing the event.
    By Contents i mean, whatever things we get after firing the event,we get some other window and some thing is added to the current page and so on.

    grab all the code inside the actionPerformed(ActionEvent e) method

  • How to map the bulk users with the required  roles in portal at one time

    Hi,
    Would anyone tell me how to map the bulk users with the required roles in portal at one time?

    Thanks for all the reply.
    <b>I need to assign 1 or 2 group to n((eg) 1000)number of users</b>
    I tried the first option like
    [group]
    gid=
    gdesc=
    user=
    Thr problem with this is I could n't put more no of users in the notepad.
    I would be able to put only 150 users in the single line of notepad. If it goes to next line it is not working.
    I tried creating seperate notepad but in Import it says "exists"
    I'm not sure about LDAP. Would anyone explain me the best approach to do this.

  • On opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.

    on opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.

    Select the Project in the Browser.  Go to the Info section of the Inspector.  Click the Modify Settings button.  For  Video Properties, change the Format from PAL to NTSC.  Export again, you'll be fine.

  • How to show the login user Id in the upper right corner of each page?

    Hi,
    I was wondering how to show the login user Id in the upper right corner of each page?
    thanks so much!
    cchu

    Cchu,
    The easy question first: applying a style to the welcome message. If you look at the page source, you'll see that #WELCOME_USER# is expanded to <div class="app-user">Welcome: DEMO</div> So to change the style of the message, you need to tweak the style of the app-user div in your CSS, or override it in a style block in your HTML header.
    Now, the tougher question: why the text is wrapping for you. And, really, without seeing your entire page, I can't give a full answer. But I'd suggest that what's most likely happening is that the table column you're putting it in is too narrow, so it's wrapping; try replacing the td tag with <td nowrap="nowrap"> This will force the column to be wide enough to display the full message, but might result in weird formatting elsewhere on the page (depending on what all is in your table).
    -David

  • WD ABAP: How to get the contents of selected table lines?

    Hi,
    I'm trying to figure out how to get the contents of table lines back from the UI. I display a table with several lines of data. The user selects some rows. I want to move the contents of the selected rows to another table. I have a context attribute, say DATA, with attributes FIELD1... FIELDn, using a DDIC structure. These are bound to the table UI element and the corresponding table columns. To get the selected rows, I use wd_context->get_selected_elements(). This works, but what I get from this method is references to if_wd_context_element. How do I know which row (row number = ?) this corresponds to? And how do I get the actual data? I want a structure with FIELD1 = value1 FIELD2 = value2 etc. My context attributes FIELD refer to table columns, but I'm looking for the table line...
    Can somebody help me?
    Thanks,
    Ira

    Hi Ira,
    wd_context->get_selected_elements() returns WDR_CONTEXT_ELEMENT_SET which is a table type of IF_WD_CONTEXT_ELEMENT. You can loop through the WDR_CONTEXT_ELEMENT_SET, get into variable say node_elelement which is of type ref to If_Wd_Context_Element. Then you could use the method GET_STATIC_ATTRIBUTES of If_Wd_Context_Element which returns a structure with values of all the attributes in the selected row.
    If you need the row number, while populating the node you could have an additional attribute called rowno and populate it correctly. When you select the data using method GET_STATIC_ATTRIBUTES, you would get the appropriate row number.
    Regards,
    Srini.

  • OOM PermGen... How to view the content of permgen

    I have a pretty big java application running on windows and linux (redhat) using JBoss as the application server.
    The application has been running for a long time without issues and now, with the end of a new release of our software, under heavy load, we are running out of perm gen space.
    What I would like to see is a tool that lets me view the content of the perm gen space so I can determine why we are using so much memory.
    I am aware of jmap -permstat (on linux only) that should let you view some info about permgem but for me, jmap connects to the java process and never comes back. I tried a profiler (jprofiler) and again, I can't find info about what is occupying the permgen memory space.
    Can someone suggest tools, or methods to get to the content of the permgen space so I can determine what our issue is?
    Here are our startup options; as you can see it has been tuned quite a bit for maximum performance for our usage patterns.
    I would appreciate any help chasing down this issue.
    Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
    -Xms8000m
    -Xmx8000m
    -Xss256k
    -XX:PermSize=256m
    -XX:MaxPermSize=256m
    -Xmaxjitcodesize96m
    -XX:+UseParNewGC
    -XX:+HandlePromotionFailure
    -XX:ParallelGCThreads=16
    -XX:GCHeapFreeLimit=10
    -XX:NewRatio=3
    -XX:SurvivorRatio=2
    -XX:InitialSurvivorRatio=2
    -XX:MinSurvivorRatio=2
    -XX:GCTimeRatio=19
    -XX:MaxTenuringThreshold=128
    -XX:TargetSurvivorRatio=90
    -XX:+ClassUnloading
    -XX:ErrorFile=hs_err_<pid>.log
    -XX:HeapDumpPath=java_<pid>.hprof
    -XX:-HeapDumpOnOutOfMemoryError

    jklopkjl wrote:
    Hi i am using oracle 10g .How to view the content of the stored procedure or trigger ?
    query ALL_SOURCE
    SQL> desc all_source
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    NAME                                               VARCHAR2(30)
    TYPE                                               VARCHAR2(12)
    LINE                                               NUMBER
    TEXT                                               VARCHAR2(4000)

  • How to scroll the contents of the table without scrolling tab/colmn headers

    how to scroll the contents of the table without scrolling table and column headers in WebDynPro.
    I have set the table properties as
    footer visible = false;
    Visible row count = -1;
    and have put the table into scroll container with some specified height.
    I dont want to use the footer as I have used many tables in the container in same row and with same <b>Data node</b>.
    I have used many tables in same row and with same context node to differentiate it with two different colors for that specific columns.
    I am using <b>NW 04</b> and not NW04s.
    Please help me regarding this.

    To print the whole data of your table you have to do it yourself. The showPrintablePageBehavior only print what you actually see on the page. It does not traverse the data.
    The normal way to handle tis is to use a report generator (like itext, jasper report, fop ...).
    Timo

  • How to retrieve the content of the indexed column

    In Oracle UltraSearch, how to retrieve the content of the file in the indexed column cache_file_path.
    we try the flowing sql
    SELECT cache_file_path FROM mytable
    WHERE contains (mytable.cache_file_path, 'viet', 1) > 0
    but we only have the cache_file_path column, not the content of the file were indexed.

    I think this is what you're looking for:
    DECLARE @table TABLE (amountPaid FLOAT, datePaid DATE, memberID INT)
    INSERT INTO @table (amountPaid, datePaid, memberID) VALUES
    (10.00, '2014-01-01',1),(10.00, '2014-02-01',2),(10.00, '2014-03-01',3),(10.00, '2014-04-01',4),(10.00, '2014-05-01',5),(10.00, '2014-06-01',6),(10.00, '2014-07-01',7),(10.00, '2014-08-01',8),(10.00, '2014-01-01',9),(10.00, '2014-10-01',10)
    SELECT *
    FROM (
    SELECT *, SUM(amountPaid) OVER (ORDER BY datePaid ROWS UNBOUNDED PRECEDING) AS runningTotal, ((SELECT SUM(amountPaid) FROM @table) / 100) * 50 AS percentileAmount
    FROM @table
    ) x
    WHERE percentileAmount >= runningTotal
    It depends upon SQL Server 2012's windowed functions. It would be possible to also do this with a rCTE in earlier versions.
    Giving your code an eyball, I think I see what it's doing. Unfortunately, I'm stuck using 2008 R2, so I don't have access to UNBOUNDED or PRECEDING. I'll have to research rCTE - I know what a CTE is, but not the 'r' prefix.

  • How to read the content in one node of XML in Java? Pls help

    My dear brothers,
    I am a newbie of XML, I have a exercise which is creating a Tree View from XML file. But the trouble is I do not know how to read the content in one node of XML file. I decide to use the algorithm as following:
    1. Create a GUI form which gives the ability for user to choose a XML file (ok)
    2. Load XML and return the file (ok)
    3. Read the file from node to node to create the node in Tree View (?!)
    Please help me, and if you are enough kind, please give me an small example to easy understand. Thanks in advance.
    Hoang Yen Binh

    I hope this one helps you.
         <ABC Type="ProductBased" ProdName="One" Location="India">
              <CEO>Raj</CEO>
              <Finance>Vikram</Finance>
              <HR>Karthik</HR>
              <Technical>Satish</Technical>
         </ABC>
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Attr;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Node;
    import org.w3c.dom.DOMException;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import java.io.File;
    import java.io.IOException;
    public class XmlReading {
         Document doc;
         Element element;
         public static void main(String[] args) throws Exception{
              XmlReading xr = new XmlReading();
              xr.getXmlParser(args);
         public void getXmlParser(String[] args) {
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   if(args.length != 1) {
                        System.err.println("Argument Required");
              try {
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   doc = builder.parse(new File(args[0]));
              }catch(ParserConfigurationException e1) {
              }catch(SAXException e2) {
              }catch(IOException e3) {
              getAttributes();
         public void getAttributes() {
              // Retrive the entire Document from the Dom Tree
              element = doc.getDocumentElement();
    //          System.out.println(element);
              NamedNodeMap attrs = element.getAttributes();
              // Get number of attributes in the element
         int numAttrs = attrs.getLength();
         // Process each attribute
              for (int i=0; i<numAttrs; i++) {
                   Node node = attrs.item(i);
                   // Get attribute name and value
                   String attrName = node.getNodeName();
                   String attrValue = node.getNodeValue();
                   System.out.println(attrName + ": " + attrValue);
              String s1 = element.getTagName();
              System.out.println(s1);
              // To get all the elements in a DOM Tree
              NodeList nl1 = element.getElementsByTagName("*");
              int i2 = nl1.getLength();
              System.out.println(i2);
              for(int i=0; i<i2; i++) {
                   System.out.println(nl1.item(i) + "\n");
    }

  • How to read the contents of attached files

    Hi,
    I am designing a Form using LiveCycle Designer 8.0
    Scenario:
    User can attach the file through "Attachments" facility provided on Adobe  Reader.
    The requirement is to attach 3 documents and post it to SAP system using Web services.
    I am using the following code(which i got from this forum only) to find the number of files user has attached.
    d = event.target.dataObjects;
    n =  d.length;
    xfa.host.messageBox("Number  of Attachments: "+n);
    //Displaying  the names of the Attached files
    for( i =  0; i < n; i++ )
    xfa.host.messageBox("Name  of the file: "+d[i].name);
    My problem: is how to read the contents of the attached files so that I post it to SAP using Web services
    Thanks in advance!!
    Taha Ahmed

    In order to read the content of the Redo Log files, you should use Logminer Utility
    Please refer to the documentation for more information:
    [Using LogMiner to Analyze Redo Log Files|http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/logminer.htm#SUTIL019]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

Maybe you are looking for