switch case statment help

Home Forums Quform WordPress switch case statment help

This topic is: resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28022
    aaron1988
    Participant

    Hi,

    I have a overall field which will display values like: 5.5, 6.0, 6.5 what i am looking for is to create a field called total range.

    and it will output like:

    if 5.5 display: 21,.0,21.5,22.0,22.5

    elseif 6.0 display: 23.0,23.5,24.0,24.5

    Was thinking of using Javascripts Switch case but not sure how to grab the values from: the Overall field to then get the Total Range based on say 5.5 or 6.0 or 6.5 etc

    Thanks
    Aaron

    #28028
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #28395
    aaron1988
    Participant

    Hi Ally,

    With this code, would i be able to change it so that if i put a hidden field on the form it then outputs the values i.e:

    if 5.5 then hidden value is: 21.0, 21.5, 22.0, 22.5 ?

    Thanks
    Aaron

    #28479
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy