Conditional Pulldowns

  • Profile Image
    guelphlittletheatre
    Asked on July 14, 2011 at 01:26 PM

    I have a set of conditional pulldowns with conditions working however I have a problem still. I have the pulldowns centered on the page by forcing them there using a Free Text box with characters the same colour as the background. It's a little clugy but it works. The problem is that the conditions don't offer the free text fields as fields I can Hide/Show so my form ends up with odd white spaces depending on which choice is first made. Can you suggest a way around this?

  • Profile Image
    guelphlittletheatre
    Answered on July 14, 2011 at 04:55 PM

    I guess I was confused. I got it working. At first I didn't recognize the Free txt Fields in the condition pulldowns. They are there so I'm able to make it work.

    I guess the question still remains should I be using the Free txt field to try to position Shrunk fields on a line or is there another way?

  • Profile Image
    abajan
    Answered on July 15, 2011 at 12:03 AM

    Hi guelphlittletheatre

    Apparently you have edited the form since posting your question in the second post above. Please do NOT edit it anymore until I have provided the solution.

    Thanks for understanding.

    UPDATE: Assuming you saw my message above and didn't make any further changes to the form, here is another way to position the shrunk fields:

    Delete all of the free text fields and inject the following CSS rules:

    #id_7 {
    padding-left:50px;
    }
    #id_62,
    #id_64,
    #id_45,
    #id_46,
    #id_49,
    #id_50 {
    padding-left:106px;
    }
    #id_97,
    #id_110,
    #id_111,
    #id_107,
    #id_116,
    #id_118,
    #id_99,
    #id_100 {
    padding-left:176px;
    }
    #id_68 {
    padding-left:126px;
    }
    #id_70 {
    padding-left:161px;
    }
    #id_73 {
    padding-left:113px;
    }

    Since all of the free text fields would now be deleted, you can get rid of all the free text conditions.

    Please let us know if this solution fits your requirements and if there's anything else related to our product with which you need assistance. Our team will be happy to help you however we can.

    Thanks.


    ~ Wayne

    P.S. I was able to determine the correct selectors to target with the use of Firebug.

  • Profile Image
    guelphlittletheatre
    Answered on July 15, 2011 at 09:23 AM

    Brilliant! I removed all the conditions and redid them after injecting the CSS. I was getting some funny behaviours. Now it all works like a charm and is much simpler. Thank you

  • Profile Image
    abajan
    Answered on July 15, 2011 at 10:12 AM

    You're quite welcome, guelphlittletheatre.
    Enjoy your weekend :)


    ~ Wayne