• Hi, I have some problem with contact form 7 and doing some google searches on the problem show 6 year old sites which use java to solve it, i would prefer not to.

    Here is the thing; the form first get some basic info like name and address, then after you select a subscription type(radio buttons) you get some options to customize that subscription. these options are different for each radio button choice.

    After adding all the default values to zero and include blanks i managed to have the form work as intended IF everything is filled correctly at first attempt. The problem here is that if someone chose subscription 1 and fill in some options, then change to subscription 2 and fill in the options and send it, i will receive the options from both forms in the mail, making it impossible to know which one they actually opted for.

    So what i am looking to do is “if radio button change, clear all sub options” so they wont have to refill the basic info, just everything after subscription type.

Viewing 3 replies - 1 through 3 (of 3 total)
  • anonymized-15380454

    (@anonymized-15380454)

    I might be able to help, but would you mind sharing the form code?

    (You can replace sensitive data with dummy values.)

    Thread Starter Akilde

    (@kilde)

    the code is pretty basic. I am currently considering writing my own plugin for wordpress to include this and some other features, but a simpler solution would be appreciated as i really don’t have the time to do so at the moment. was hoping there was some feature in CF7 which i missed.

    <label> Alle felt må fylles ut korrekt!</label>
    <label> Ditt navn
        [text* your-name] </label>
    
    <label> Din adresse
        [text* your-home] </label>
    
    <label> E-post 
        [email* your-email] </label>
    
    <label> Fødselsdato (DDMMÅÅÅÅ)
        [text* fodt-dato] </label>
    
    [radio velgprodukt use_label_element "Mobil Privat" "Mobil Bedrift" "M2M" "Bredbånd" "Bedriftsnett" "Satelitt"]
    
    [group tlf-valgt][radio nummer use_label_element default:0 "Nytt nummer" "Behold nummer"]
      [group tlfnumber]<label> Ditt nummer :
        [text* your-tlf] </label>
      [/group]
      [radio velg-abonnement use_label_element "1GB" "3GB" "5GB" "10GB"]
    [/group]
    
    [group bredband-valgt]
      [radio bredband-valg use_label_element default:0 "1GB" "5GB" "10GB" "20GB" "50GB" "100GB"]
    [/group]
    
    [group bedriftsnett-valgt]
      [radio bedriftsnett-valg use_label_element "Basis" "Standard" "Pluss" "Premium"]
      <label> Antall brukere : [number antall-bruker]</label>
      [checkbox bnett-ekstra use_label_element "Softphone PC-klient" "Hovednummer, ekstra" "MB meny enkel" "MB meny avansert" "Kø basis ekstra" "Kø premium ekstra" "Svartjeneste Mobilsvar" "MB oppsett pr time" "SIP bordtelefon" "Skype presence" "Skype tale" "Andre tjenester"]
      <label> Notater : [textarea bnett-meld]</label>
    [/group]
    
    [submit "Bestill"]
    anonymized-15380454

    (@anonymized-15380454)

    Sorry, I forgot about this one!

    (And my lappy was not usable during the last two days.)

    Have you found a solution, or do you still need help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clear form on event’ is closed to new replies.