Entry form not working
Posted: 22 May 2007 10:20 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  241
Joined  03-19-2006

I’m building an intranet sitye here at work and I’m building a submission page for people to list their “artifacts” or documents.

Other than the title field, there are two custom fields - path_to_artifact and artifact_notes. I’m using an html file upload field for users to be able to insert the path to their artifact with. However, I do NOT want the actual file to upload, I only want it to populate the field.

My entry form is as follows:

{exp:weblog:entry_form weblog=”{my_weblog}” return=“weblog/index” preview=“weblog/entry”}
<p><b>Title</b><br />
<input type=“text” name=“title” id=“title” value=”{title}” size=“71” maxlength=“100” onkeyup=“liveUrlTitle();” /></p>
<p><b>Path to Artifact</b><br />
<b><tt><big><input type=“file” ... value=”{path_to_file}”></big></tt></b>
<p><b>Artifact Notes</b><br />
<div class=“bodytext” ><textarea cols=“50” rows=“6” onclick=“setFieldName(this.name)” value=”{artifact_notes}”></textarea>
</br>
<input type=“submit” name=“submit” value=“Submit” />
<input type=“submit” name=“clear” value=“Clear” />
{/exp:weblog:entry_form)

The only field that populates the database is title. The other two fields do not input any data.

Any thoughts on what I’m doing wrong? Thanks,

THT

 Signature 
Profile
 
 
Posted: 23 May 2007 03:10 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  503
Joined  07-02-2005

You need to make sure to properly set the name= attributes on your input fields and textareas.  For custom fields, you’ll probably have to look up the field ID’s and set them like name=“field_id_3” etc.  You could also check out Solspace’s Freeform plugin, but it might be more work to get acclimated to that than to just set it up this way.

 Signature 

– Joseph Bermann
Admin, Deep Thought
EE 1.6.4, Forum 2.0.0

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64945 Total Logged-in Users: 67
Total Topics: 81925 Total Anonymous Users: 49
Total Replies: 440358 Total Guests: 300
Total Posts: 522283    
Members ( View Memberlist )