change label text based on field value
Last Post 02-12-2009 01:22 PM by Chad Nash. 2 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Chad HeinleUser is Offline
skipping stones
skipping stones
Posts:14
Avatar

--
02-11-2009 05:31 PM

    OK, so I am wondering what would be the best way to do this (i.e. Javascript, client event, etc)

    I have two radio buttons labeled business and organization.  Depending on which radio button is clicked, I am hiding some of the fields because users do not fill in as much information for organizations.

    this works great.  What I am trying to figure out is how to also change the label text for the remaining questions when the 'organization' radio button is selected.  This will change the text of the question, but all information is stored in the same repository.

    I have thought about writing some javascript, but wondering if there is a way through the program I could do this easier?  Or would you already have some sample javascript I could use for this? 

    Thanks for any help you can give.  I am looking to try and do this ASAP.

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    02-12-2009 01:21 PM
    Chad...

    A few options here but they all involve a client side event and either making the field label HTML as a span/header tag or using question header/footer and hiding the field label etc... Check out form demo 20 (http://www.datasprings.com/formdemos) and see how the text/html is changing based on radio buttons selected etc...

    -Chad
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    02-12-2009 01:22 PM
    PS... Great name!

    -Chad


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi