+ Post New Thread
Results 1 to 4 of 4
Web Development Thread, Sharepoint Contact form web parts in Coding and Web Development; I've been trying to create a contact form web part on a sharepoint site I've been working on but hit ...
  1. #1
    paul_1989's Avatar
    Join Date
    Jan 2010
    Location
    Blackpool
    Posts
    45
    Thank Post
    5
    Thanked 9 Times in 7 Posts
    Rep Power
    15

    Sharepoint Contact form web parts

    I've been trying to create a contact form web part on a sharepoint site I've been working on but hit a few walls (I'm using the sharepoint 2010 beta).

    It's my first sharepoint site so I'm probably missing something simple but I've tried using the HTML Form web part, then editing the code to add the different form parts I want on (Name, E-mail address, Subject, Message etc). Once I click save it seems to work perfectly fine, but when I go to a different page then come back to the one with the form on it has completely disappeared and wiped everything off the page with it!!! Then on top of that when I try and click edit page the loading icon comes up but never actually loads to a point where I can edit.

    After a couple of attempts I thought I'd just try finding a web part that I could download to use but there doesn't seem to be one anywhere (at least not a free one anyway).

    So basically does anyone have any ideas? or a web part that they use for the same thing that I could use?

  2. #2
    adhutton's Avatar
    Join Date
    Dec 2008
    Location
    Northeast England
    Posts
    404
    Thank Post
    164
    Thanked 86 Times in 64 Posts
    Rep Power
    54
    Sounds like you might have a bit of bad/incorrect HTML code in there.

    That can sometimes cause a page to be blank or not load correctly.

    A

  3. #3
    paul_1989's Avatar
    Join Date
    Jan 2010
    Location
    Blackpool
    Posts
    45
    Thank Post
    5
    Thanked 9 Times in 7 Posts
    Rep Power
    15
    I've managed to play around with it and get it to stop disappearing now. For some reason it didn't like it when i used anything to do with "<form>" but now I can't seem to get it to actually send the e-mail when the send button is pressed.

    <div method="post" action="mailto:{EmailAddress}">

    Name:<br><input type="text" Name="Name"/><br>
    E-mail:<br><input type="text" name="E-mail"/><br>
    Subject:<br><input type="text" name="Subject"/><br>
    Message:<br><textarea rows="5" cols="40" wrap="physical" name="Message"></textarea><br>
    <input type="submit" value="Send">

    </div>


    Have I missed something? (As you can probably guess I'm not too clued up on this >.< )
    Last edited by EduTech; 29th March 2010 at 12:41 AM. Reason: Removed Email Address to Prevent Spam.

  4. #4
    apearce's Avatar
    Join Date
    Feb 2008
    Location
    Birmingham
    Posts
    417
    Thank Post
    36
    Thanked 176 Times in 111 Posts
    Rep Power
    43
    Paul,
    Could you not use a custom list to do this? Thats how I have done it before.

    A.

SHARE:
+ Post New Thread

Similar Threads

  1. Popup generation and sharepoint web parts
    By GrumbleDook in forum Web Development
    Replies: 2
    Last Post: 29th August 2011, 07:40 AM
  2. Datasources for SharePoint web parts
    By boodle in forum Virtual Learning Platforms
    Replies: 1
    Last Post: 17th December 2009, 03:19 PM
  3. contact us form
    By Avalon in forum EduGeek Joomla 1.5 Package
    Replies: 4
    Last Post: 5th November 2009, 12:35 PM
  4. Installing Moodle web parts on 64bit SharePoint server
    By mleighton in forum Virtual Learning Platforms
    Replies: 2
    Last Post: 2nd April 2009, 07:24 PM
  5. Web-based contact form being abused
    By HodgeHi in forum Web Development
    Replies: 17
    Last Post: 5th November 2007, 11:29 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •