PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

calculation selects text to passed through query string

  1. I am trying to display text based on a total from a quiz which is displayed on a page using conditional logic. I am trying to do this via a query string

    currently the query string has these merge tags

    odds={3in4:25}{1in3:24}{1in7:23}{1in26:22}{1in60:21}

    it will only display one the first one, even if the total doesn't relate to the field

    so if the total is 19 it displays the text in field {3in4:25} or 25 {1in3:24}

    Is this possible?

    is there syntax that I need would use between each merge tag, like or/if/ , that pushes that text field to the next page.

    shrugs his shoulders and scratches his head like a chimp

    I have asked this before and have been advised, wondering if I am still missing the point and that I just need to get this customised

    :O(

    (frown from a poor impoverished chimpanzee)

    Posted 11 years ago on Sunday September 23, 2012 | Permalink
  2. Joseph, please export that form as XML and email it to me at chris@rocketgenius.com and I will have a look at it. Thank you.

    Posted 11 years ago on Monday September 24, 2012 | Permalink
  3. Will do... I am getting more and more bald here!

    Posted 11 years ago on Monday September 24, 2012 | Permalink
  4. I'm thinking that the best way to do this would be via

    http://gravitywiz.com/2012/08/18/conditional-confirmations/

    and use the query string

    and create a page for each result 5 pages the same apart from one bit of text

    what dya thinks.

    I'm guessing from David's post that it will an update in the next release.

    Cool!

    Posted 11 years ago on Tuesday September 25, 2012 | Permalink
  5. I agree that using conditional shortcodes in the query string is probably the way to go. I don't think I ever received your form. Can you tell me what email address it came from, or the subject line? Thank you.

    Posted 11 years ago on Wednesday September 26, 2012 | Permalink
  6. Apols for being clueless?

    1. Would the conditional shortcode be as is in the link above, when being inputted in the query string?

    like this?

    [gravityforms action="conditional" merge_tag="{Number:1}" condition="greater_than" value="4" condition="less_than" value="10"]
    1 in 60
    [/gravityforms] Q1={1:1}&Q2={2:2)&Q3={3:3)

    2. How would the syntax look like for multiple conditions, ie greater_than "4" and less_than "10", as above?

    Posted 11 years ago on Wednesday October 3, 2012 | Permalink
  7. realised this goes in the page duh..

    How every I am getting this error

    Warning: Header may not contain more than a single header, new line detected. in /hermes/waloraweb044/b2035/moo.neuroknowhowcom/neurodiversecity/wp-content/plugins/gravityforms/form_display.php on line 83

    Is the merge tag {Number:1} placed in the query string as is?

    {Number:1}
    Q1={1:1}&Q2={2:2}&Q3={3:3}

    with the {Number:1} that I want in the conditional shortcode I get the Q1={1:1}&Q2={2:2}&Q3={3:3}
    How does the short code get to the contitional short code.

    I'm a bit lossed

    Posted 11 years ago on Thursday October 4, 2012 | Permalink
  8. You can't have multiple conditions like this:

    [gravityforms action="conditional" merge_tag="{Number:1}" condition="greater_than" value="4" condition="less_than" value="10"]

    You will have to separate them, maybe make the condition="is" and then code one for each value, 5,6,7,8,9.

    Is the merge tag {Number:1} placed in the query string as is?

    Assuming that is the merge tag as provided by the drop down, yes. It goes in just like that.

    Posted 11 years ago on Saturday October 6, 2012 | Permalink
  9. will try this Chris

    Thanks

    :O)

    Posted 11 years ago on Sunday October 7, 2012 | Permalink
  10. Sorry for the LONNNNG ASS POST

    I have been working on this for AGES

    I'm getting this now hermes/waloraweb044/b2035/moo.neuroknowhowcom/neurodiversecity/wp-content/plugins/gravityforms/form_display.php on line 88

    This is the form link
    http://www.neuroknowhow.com/dyslexia-screening-tool/

    This is what I have in the query string:

    {Questionnaire Results Total:13}
    dyslexQ1={dyslexQ1:1}&dyslexQ2={dyslexQ2:2}&dyslexQ3={dyslexQ3:3}&dyslexQ4={dyslexQ4:4}&dyslexQ5={dyslexQ5:5}&dyslexQ6={dyslexQ6:6}&dyslexQ7={dyslexQ7:7}&dyslexQ8={dyslexQ8:8}&dyslexQ9={dyslexQ9:9}&dyslexQ10={dyslexQ10:10}&dyslexQ11={dyslexQ11:11}&dyslexQ12={dyslexQ12:12}

    This is the page for them to be displayed
    http://www.neuroknowhow.com/dyslexquestionnaireresults/

    this is what I have on the page HTML

    <hr />
    
    <h2>Based on these responses you have a <strong><span style="text-decoration: underline;"><span style="color: #ff0000; text-decoration: underline;">[gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="0"]1 in 60[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="1"]1 in 60[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="2"]1 in 60[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="3"]1 in 60[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="4"]1 in 60[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="5"]1 in 60[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="6"]1 in 60[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="7"]1 in 26[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="8"]1 in 26[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="9"]1 in 26[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="9"]1 in 26[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="10"]1 in 26[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="11"]1 in 26[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="12"]1 in 26[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="13"]1 in 7[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="14"]1 in 7[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="15"]1 in 7[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="16"]1 in 7[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="17"]1 in 7[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="18"]1 in 7[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="19"]1 in 3[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="20"]1 in 3[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="21"]1 in 3[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="22"]1 in 3[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="23"]1 in 3[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="24"]1 in 3[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="25"]3 in 4[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="26"]3 in 4[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="27"]3 in 4[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="28"]3 in 4[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="29"]3 in 4[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="30"]3 in 4[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="31"]3 in 4[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="32"]3 in 4[/gravityforms][gravityforms action="conditional" merge_tag="{Questionnaire Results Total:13}" condition="is" value="33"]3 in 4[/gravityforms]</span></span></strong> chance of being dyslexic.</h2>
    If the above result expresses that you have a 1 in 60 or 3 in 4 chance of being dyslexic, it is possible for you to be the 1 in 60 chance range, with a low score who is dyslexic or in the 3 in 4 range with a very high score who is not dyslexic.
    
    <strong>Your own feelings</strong> about the matter can sometimes be <strong>more significant than the score.</strong>
    
    If you feel that you would benefit from a full diagnostic assessment reply to this email or <a href="https://www.neuroknowhow.com/send-us-a-message/"> contact NeuroKnowHow </a>
    <table style="position: relative; border-color: #ffffff; border-width: 5px; width: 770px; height: 1186px; border-style: solid;" border="5" cellspacing="0" cellpadding="15" align="center">
    <tbody>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px; width: 80%;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> Do you mix up dates and times and miss appointments? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=3]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> When writing down the date do you often make mistakes? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=4]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> Is your spelling poor? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=5]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> When using the telephone do you get the numbers mixed up when you dial? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=6]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> Do you find forms difficult and confusing? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=7]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> Do you find it difficult to take messages on the phone and pass them on correctly? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=8]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> Do you mix up bus numbers like 35 and 53? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=9]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> Do you find it difficult to say the months of the year forwards in a fluent manner? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=10]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> When you were at school did you find it hard to learn the multiplication or times tables? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=11]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> Do you take longer than you should to read a page of a book? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=12]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> Do you find difficulty in telling left from right? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=13]</td>
    </tr>
    <tr>
    <td style="background-color: #e0c1df; border-color: #ffffff; border-style: solid; border-width: 1px;"><span style="font-size: 14px; font-family: Century Gothic,sans-serif;"> <strong> Did you find it difficult to decide how to answer these questions? </strong> </span></td>
    <td style="background-color: #d1e0f9; border-color: #ffffff; border-style: solid; border-width: 1px; text-align: center;">[php snippet=14]</td>
    </tr>
    </tbody>
    </table>
    &nbsp;
    Posted 11 years ago on Monday October 8, 2012 | Permalink
  11. You're getting "what" now?

    I'm getting this now

    Maybe a PHP error in form_display.php on line 88? But what was the error?

    Posted 11 years ago on Monday October 8, 2012 | Permalink
  12. Sorry dude!

    Warning: Header may not contain more than a single header, new line detected. in /hermes/waloraweb044/b2035/moo.neuroknowhowcom/neurodiversecity/wp-content/plugins/gravityforms/form_display.php on line 88

    Posted 11 years ago on Monday October 8, 2012 | Permalink
  13. when the form is submitted I get the above

    Posted 11 years ago on Monday October 8, 2012 | Permalink
  14. Joseph, can you export that form please and email the XML to me at chris@rocketgenius.com - I would like to install it and take a look at what you're seeing.

    Posted 11 years ago on Monday October 8, 2012 | Permalink
  15. have sent the email with

    "calculation selects text to passed through query string"

    in the subject

    Posted 11 years ago on Tuesday October 9, 2012 | Permalink
  16. Got it Joe, thanks for the emails. I will check it out today.

    Posted 11 years ago on Wednesday October 10, 2012 | Permalink
  17. Any joy?

    Posted 11 years ago on Thursday October 11, 2012 | Permalink
  18. Just wondering would I have to create something more like this

    http://www.gravityhelp.com/forums/topic/terms-of-conditions#post-7442

    and have 5 pages for each set of probability odds, based on the calculation results?

    Posted 11 years ago on Friday October 12, 2012 | Permalink
  19. Is it a lost cause?

    boohoo!

    Posted 11 years ago on Friday October 12, 2012 | Permalink
  20. Finally Got this Sorted YeeeeeeHaw!!!

    You can close and burn it!

    Posted 11 years ago on Sunday October 14, 2012 | Permalink
  21. Glad you got that sorted Joseph. Thank you for the update.

    Posted 11 years ago on Monday October 15, 2012 | Permalink

This topic has been resolved and has been closed to new replies.