Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • aghy 129 posts 308 karma points
    Jan 04, 2011 @ 15:30
    aghy
    0

    PliableForm(3.5)_.9.6.zip

    Whenever I submit the form I get an error back saying 

    The parameter 'address' cannot be an empty string. Parameter name: address

    I've checked all the settings in the doctype and set the addresses in the dictionary section.

    Any ideas?

    Thanks

    Ben

  • aghy 129 posts 308 karma points
    Jan 06, 2011 @ 14:15
    aghy
    1

    Think it works now...

    I had been using the .net 4 version locally on my laptop and all was fine but I was working on a hosted website using .net 3.5 when I encountered this problem. So I decided to upgrade the hosted website to .net 4 and use the .net 4 pliable ajax form ... but I still got the same error. I made sure all the dictionary settings had been set. 

    After re reading your documentation I added the dictionary items into the appSettings in the web.config and all was fixed and the form works.

    I think the problem is that it isn't reading the dictionary items. After some testing it looks like it pulls through the address to from the doctype so I just have to have the fromAddress in appSettings. Have you any idea what might cause this??

    Thanks

    Ben

  • wolulcmit 357 posts 693 karma points
    Mar 30, 2011 @ 00:06
    wolulcmit
    0

    Thanks for posting this, I added the appropriate keys to the web.config too which fixed the problem. Glad I found someone with the same problem and an appropriate fix!

  • Joel 40 posts 62 karma points
    May 16, 2011 @ 14:50
    Joel
    1

    How did you guys added the keys? As I got a web.config error:

    <appSettings>    
    <!-- ll Umbraco keys here -->
    <add key-"PliableForm.defaultEmailSubject" value="Contactform" />
    <add key-"PliableForm.defaultToAddress" value="[email protected]" />
    <add key-"PliableForm.enableSsl" value="True" />
    <add key-"PliableForm.fromAddress" value="[email protected]" />
    </appSettings>
  • aghy 129 posts 308 karma points
    May 16, 2011 @ 15:02
    aghy
    2

    Hi Joel,

    You've written key- instead of key=

    <add key-"PliableForm.defaultEmailSubject" value="Contactform" />

    should be

    <add key="PliableForm.defaultEmailSubject" value="Contactform" />

    same with the others.

    Ben

  • Joel 40 posts 62 karma points
    May 16, 2011 @ 15:10
    Joel
    0

    ouch....

    DidnĀ“t noticed the typo multiple times :/ Thanks for the extra pair of eyes, form works now :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies