How can I promote a field in my form to a SharePoint 2010 list column and have it populated?

Hello,
   I have created a form using some jquery, html and <td> tags. I would like to promote the fields that I am having users fill out in the form so that they appear in the list that the submitted form is writing to. Below is the code that I
have written, with some help of a great tool (Forms 7), is there another tag or class that I can input in order for the field names to appear in the list? I'm trying to also create a workflow and without these fields being columns I'm at a loss. Please help
<link  type="text/css" rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/themes/start/jquery-ui.css" /> 
<!-- Reference jQuery on the Google CDN --> 
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> 
<!-- Reference jQueryUI on the Google CDN --> 
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script> 
<!-- Reference SPServices on cdnjs (Cloudflare) --> 
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/0.7.2/jquery.SPServices-0.7.2.min.js"></script> 
<script type="text/javascript" src="http://www.sharepointhillbilly.com/demos/SiteAssets/jquery.Forms7-0.0.03.js"></script>
<style type="text/css">
.error
{font-family:'Tahoma',sans-serif;font-size:10px;text-align:left;color:red;}
</style>
<script type="text/javascript">
$(document).ready(function() {
    //Initialization function. Tells Forms7 which Query String Variable
    //has the ID of the form, and the name of the list to read data from
    $("#sampleForm").Forms7Initialize({
queryStringVar: "formID",
listName: "Contacts"
//helper function to load a drop downlist
//assumes there is a list called "States"
    $("#PassSelect").Forms7LoadDDL ({
listName: "Passengers",
firstOptionText: "Select",
fieldName: "Title"
   //apply the jQueryUI calendar to the DepartDate field
$( "#DepartDate" ).datepicker({
           changeMonth: true,
           changeYear: true,
        //apply the jQueryUI calendar to the ReturnDate field
$( "#ReturnDate" ).datepicker({
           changeMonth: true,
           changeYear: true
//function to load the city drop down list to only show cities for the selected state
function LoadCities(stateID)
//helper function to load a cascading dropdown list
//in this example it would load Cities from a list called "Cities"
//where that list had a lookup field called "State" and it would
//use the ID of the selected State
//    $("#CitySelect").Forms7LoadChildDDL({
// parentID: stateID,
// parentField: "State",
// listName: "Cities",
// firstOptionText: "Select City",
// fieldName: "Title"
function SubmitForm()
//When the form is submitted store it to the specified list
//also pasas in the x and y offset of error messages for elements
//this allows you to change their location in reference to the form field
$("#minimalForm").Forms7Submit({
listName: "Reservations",
errorOffset"Apple-tab-span" style="white-space:pre;">    
errorOffsetnbsp;           completefunc: function(id) { 
alert("Save was successful. ID = " + id);
window.location = window.location.pathname + "?formID=" + id; 
</script>
<div id="minimalForm" >
<table width="100%" cellpadding="10" cellspacing="0" >
<tr bgcolor="white">
<div id="minimalForm" >
<br><img src="http://BannerImage.jpg"  width="400" height="160" alt="AltImageName" align="middle">
<font size="6">Vehicle Request Form</font>
<font size="1">Last Modified: 03/21/2014</font></br>
<hr><b></hr></b>
<p>
</p>
<hr>
<br><font size="3"><b>Forms on File</b></u></font></br>
<hr>
<font size="2"><b>NOTE:</font></b> <font size="1">The following forms must be on file with Human Resources before you can use a vehicle. Only fill out the third form if you need to notify HR about any activities
that may affect your eligibility to operate a motor vehicle
</font>
<br><a href="url"><font size="3">1) Driver's History Consent Form </a>
<br><a href="url"><font size="3">2) Driver Qualification Procedure Acknowledgement Form</a>
<br><a href="url"><font size="3">3) Driver Qualification Procedure Notification</a>
<br>
<br><font size="1"><b>These forms must be signed and submitted to Human Resources every 6 months.</font></b>
<br><font size="1">Do you currently have these forms on file with Human Resources?</font> 
</font>
<hr>
<table>
<td><font size="3"><b><u>Driver Information</b></u></font></td>
</table>
<table>
<tr bgcolor="white">
<br>
<td class='formLabel'>First Name:</td>
<td class='formLabel'><input title="First Name" id='FirstName' data-displayname="DriverFirstName"class='required formInput' maxlength="40"></td>
<td class='formLabel'>Middle Name:</td>
<td class='formLabel'><input title="Middle Name" id='MiddleName' class='formInput' maxlength="1"></td>
<td class='formLabel'>Last Name:</td>
<td class='formLabel'><input title="Last Name" id='LastName' class='required formInput'maxlength="40"></td>
</tr>
<tr bgcolor="white">
<td class='formLabel'>Email:</td>
<td class='formLabel'><input title="Email" id='Email' class='required formInput' maxlength="40"></td>
</tr>
<tr bgcolor="white">
<td class='formLabel'>Supervisor Name:</td>
<td class='formLabel'><input title="SupervisorName" id='SupervisorName' class='required formInput' maxlength="40"></td>
</tr>
</table>
<hr>
<table>
<td><font size="3"><b><u>Passenger Information</b></u></font></td>
</table>
<table>
<tr bgcolor="white">
<br>
<td class='formLabel'>Passenger Name:</td>
<td class='formLabel'><input title="First Name" id='PFName' class='required formInput' maxlength="40"></td>
<td class='formLabel'>Middle Initial:</td>
<td class='formLabel'><input title="Middle Name" id='PFName' class='formInput' maxlength="1"></td>
<td class='formLabel'>Last Name:</td>
<td class='formLabel'><input title="Last Name" id='PLName' class='required formInput'maxlength="40"></td>
</tr>
<tr bgcolor="white">
<td class='formLabel'>Email:</td>
<td class='formLabel'><input title="Email" id='PEmail' class='required formInput' maxlength="40"></td>
</tr>
<tr bgcolor="white">
<td class='formLabel'>Passenger Supervisor Name:</td>
<td class='formLabel'><input title="SupervisorName" id='PSuperVisorName' class='required formInput' maxlength="40"></td>
</tr>
<tr bgcolor="white">
<td class='formLabel'>Number of Additional Passengers:</td>
<td class='formLabel'><select title="Pass#" id='PassSelect' class='formInput' onchange="LoadPassengers(this.value);"></select></td>
</tr>
</table>
<hr>
<table>
<td><font size="3"><b><u>Reservation Duration</b></u></font></td>
</table>
<table>
<tr bgcolor="white">
<br>
<td class='formLabel'>Depart Date:</td>
<td class='formLabel'><input title="Depart Date" id='DepartDate' class='required formInput' isDate="yes" validate="validDate" onchange="validDate(this.value,this);"></td>
<td class='formLabel'>Return Date:</td>
<td class='formLabel'><input title="Return Date" id='ReturnDate' class='required formInput' isDate="yes" validate="validDate" onchange="validDate(this.value,this);"></td>
</tr>
</table>
<hr>
<table>
<td><font size="3"><b><u>Travel Information</b></u></font></td>
<tr bgcolor="white">
<td class='formLabel'>Please describe reason for request:</td>
<td class='textbox' height='20' width='30'><input title="DestInfo" id='DestInfo' class='required formInput' maxlength="500"></td>
</tr>
</table>
</hr>
<p></p>
</br>
<input type="button" value="Submit/Update Request Form" onclick="SubmitForm();">

Hi,
If you want to add fields to a list, as you have written your form in JavaScript, you can take consideration of using JavaScript Client Object Model to add/delete fields dynamically.
How to: Create, Update, and Delete Lists Using JavaScript
http://msdn.microsoft.com/en-us/library/office/hh185005(v=office.14).aspx
If you want to achieve it with Form7, it is recommended to post the question to its forum to get quick and confirmed answer.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support

Similar Messages

  • How can I format a field in the form creator?

    How can I format a field in the form creator? It's putting the same text in all the fields within a table. I want each field within the table to have different text. As soon as you click out of the table, all the text is the same.
    I even changed the fields from a text box to a drop-down list so a person can make their selection, which will be a quantity from 0-9. There are two of these such fields. You make your selection in each, click off the table and both fields show whatever I selected in field 1. The original Qty I selected in the bottom field was a 5 but it changed it to whatever is in the top field on it's own. I've added a screen shot.

    This behaviors usually happens when you create the fields but  a copy paste command from one of the fields. The copy paste command assumes that your intentions is to maintain a copy of the field in two separate locations (e.i, a form field  "company name" printed in each and every page of a multi-page form document.
    Go to the properties fields of each field and make sure  to assign unique form field  names.

  • How can we add Text field on system form which is updateable?

    Hi Experts
    I Want to create text field on System Form like A/R Invoice, in which I can store value after saving the document. I means Updateable field. Is it possible and How?
    Thanks
    Regards
    Gorge

    Hi Gorge,
    Please follow Jeyakanthan instructions. You may know how to create a UDF but you clealy don't understant how they work.
    A UDF in the System document's Title table is always updatable, unless you define it otherwise or do not have permission to update it (Open the form where you created the UDFs and press CTRL + ALT + B to open the definitions form).
    A UDF in the System document's Rows table is always updatable ONLY if that document's rows are updatable AND if you set them as updatable (via Form Settings) and have permission.
    On a User Form, you make your own rules!
    Regards,
    Vítor Vieira

  • How can I Validate all fields of the form and show validation summary?

    Hello,
    I am building a dynamic form with livecycle. I need to implement two fetures:
    1. Show the user all invalid fields of the form when he tries to submit it (show him validation summary) and guide him to correct the errors.
    2. Remove the highlight frame from mandatory fields after user enters his input.
    Thanks a lot in advance,
    Peter.

    Okey once more a try...
    Normally you don't get a list of the fields that didn't pass the validation. So, you have to script the list by yourself!
    If you put the validation script in the exit field that means if the user doesn't enter the field, the script won't be executed.
    You could make an additional script into presave, presubmit, validate or whatever that will force the user to go to the field.
    For example make a field only mandatory if the user doesn't enter anything.
    Way to make mandatory fields that won't be shown if the user had provided response
    if (this.rawValue == null) {
    this.validate.nullTest = "error";
    this.edge.color.value = "255,0,0";
    this.assist.toolTip.value = "This field is mandatory, please provide a response...";
    xfa.layout.relayout();
    else {
    this.validate.nullTest = "disabled";
    this.border.edge.color.value = "255,255,255";
    this.assist.toolTip.value = "This field is optional...";
    xfa.layout.relayout();
    Will JUST get mandatory if the user doesn't provide response. (Is an older script I got here and changed slightly for you.)
    Do the parts in the event that should "fire" them. Probably divide it into two parts with two if statements instead of the else...
    Think good about the event!
    Way to make a list of what things the user has forgotten!
    You can make an invisible TextField that will be shown AND populated if the user tries to submit something invalid.
    Calculate Event of the Textfield:
    this.rawValue = " "
    if (Dezimalfeld1.rawValue == null)
    {this.rawValue = this.rawValue + "*Please enter something into Dezimalfield1, Page1,...                                                    ";}
    if (Dezimalfeld2.rawValue == null)
    {this.rawValue = this.rawValue + "*Please enter something into Dezimalfield1, Page1,...                                                    ";}
    (Of course you've got to name the fields exactly.
    All scripts are JAVASCRIPT!)

  • How can I fix a dbwrap.exe error that prevents a SharePoint 2010 installation?

    Every time I attempt to install SharePoint 2010 on my Windows 7 64-bit laptop I get the following error in the setup log:
    'dbwrap.exe' failed with error code: -2068578304. Type: 8::CommandFailed.
    The installation aborts.  I need more information.  How do I fix this problem?J Tom Kinser

    thank you so much Yuming.
    I get the same issue while installing Sharepoint on Win 7. I check out error logs and get to know it's SQL Server Express issue.
    First I found this in DBWrapLog log:
    INF:0:Cannot find sql express instance. Do fresh install.
    INF:0:Try to install SQL Express.
    INF:0:Entering function RunCommand
    INF:0:Starting process C:\Program Files\Common Files\Microsoft Shared\SERVER14\Server Setup Controller\sqlexpr.exe with args  /q /HideConsole  /ACTION=install /pid=11111-00000-00000-00000-00000 /FEATURES=SQL,Tools /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS"
    /SQLSVCACCOUNT="NT AUTHORITY\Network Service" /INSTANCENAME=SharePoint /INSTALLSQLDATADIR="C:\Program Files\Microsoft Office Servers\14.0\Data" and waiting 00:49:10 for it to stop
    ERR:-2067919934:Leaving function RunCommand
    Then I start my SQL Express instance and run Sharepoint setup to repair. However I got this error again in DBWrapLog:
    INF:0:Entering function RunCommand
    INF:0:Starting process C:\Program Files\Common Files\Microsoft Shared\SERVER14\Server Setup Controller\sqlexpr.exe with args  /q /HideConsole /ACTION=Repair /INSTANCENAME=SharePoint and waiting 00:49:10 for it to stop
    ERR:-2068643839:Leaving function RunCommand
    INF:0:Try to config SQL Express instance.
    INF:0:Grant Exec Right for dbo.sp_add_job
    INF:0:Data Source=.\SharePoint;Initial Catalog=msdb;Integrated Security=True;Pooling=False
    WRN:0:Fail to config in the number 1 try, will sleep 10 seconds and try again. The exception is System.Data.SqlClient.SqlException:
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
    (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    up to here, I get stuck.
    Can I consult this: How do you know to change value from reg HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\WSS\ServerRole. And what does this mean?
    Another Leon

  • How can I operate  multi displays on my Imac 21.5 quad core 2.5 and have each display function independently?

    how can I operate  multi displays on my Imac 21.5 quad core 2.5 using Lion and have each display function independently?

    Below are some converters/adapters to look at.  If these look like they may work:
    USB 2.0 to HDMI Audio Video 1080P Adapter for Windows and Macbook
    Matrox DualHead2Go D2G-A2D-IF (or look here)
    These should allow you to run multiple displays in extended display mode.  Note that these use HDMI as an output so you would need some additional adapter to conver HDMI to whatever your displays require.  Of course these suggestions are all academic if such an adapter doesn't exist.
    Update:
    I just reread your last post and I am confused.  Is it only your TV that you are trying to run in extended display mode?  I thought you wanted more than two displays.  If only  the TV it should just work if you are not using mirrored displays.  Your Displays Arrangement tab should show both your main screen (one with the little whith menu bar) and the TV.  Set the proper resolution and refresh rate for the TV using it's Displays preference window.  That is all you need to basically do (ignoring overscan/underscan problems).
    Note, if you are using Lion then I have heard that when using full screen mode in Lion additional screens show nothing.

  • How can I reset my admin. password without the MAC OXS  reinstall, bought mine used and have no such disk

    Hi, how can I change my admin password without the reinstall of MAC OXS disk or whatever that is, I bought my macbook privately and cant update my adobe flash without the password which I have never set up. but anything I type in is wrong...... as a password.

    ok have read all relivant posts and have tried the restart command+R which does absolutely nothing. My Computer opens up as usual.
    I have found another response which suggests command+S and generate an entirely new admin. and password and you are not supposed to loose a single file.
    Has anyone done this and been successful? I have just installed a new hard drive in the last 3 months and don't want to do any damage.
    Hearing a success story would be nice.  Thanks

  • My applications will not open, how can I fix this. I recently bought a new lap top download iTunes and have been using it now, any suggestions?

    My iPhone 4 will not open my purchased apps, anyone know what is going on? I just recently bought a new laptop and downloaded iTunes onto and synced my phone. I was also talking on my phone and it died, then I charged it and that is when the apps would no longer open. My mail, and iPod and safari work just not the purchased apps, if anyone know please write back!:)

    Try downloading any free app to resync your iTunes account.

  • How can you rotate the labels on the category axis of a graph in Illustrator and have it stay the same when updating the graph data?

    I am needing to create a line graph with dates consisting of MM/DD/YY along the category axis. I would like to rotate the labels 45 degrees and have them stay when I update the graph. I have read about manually doing it, I even made an action to make it faster, but it still seems inefficient. Is there a setting that I could use to automatically create my labels as rotated? Thanks.

    Hi Gravy Train,
    I'm curious about why you are using 2 loops.   You mentioned one is for monitoring and one is for DAQ....what do you mean by that?   What is the overall goal of this piece of code.   Also, I noticed that you are not closing the task.   Since this is just a subset, I realize you could be closing it in your actual code, but just in case you're not.....it is very important that you close all tasks when you are down acquiring data.
    Best Regards,
    Starla T  

  • How to copy Excel sheet data to SharePoint 2010 List?

    Hi,
       I need to export excel data to SharePoint 2010 list. I have created 22 columns in list which are of following Column types:
    Single line of text,
    Multiple line of text,
    Choice
    Number,
    Date,
    Person or Group.
    Now i need to export the excel data to SharePoint list.
    When iam trying to copy data from excel to List , it is showing as "The selected cells are read only".
    can someone guide on this to export spread sheet data to SharePoint list without importing Spreadsheet.
    Thanks in advance.
    Badri

    I've updated the example of using PowerShell to include a Person field (user field) and a choice field.
    The CSV file has the following columns:
    TRIP_NO
    VESSEL_NAME
    FLAG
    AGENT_NAME
    CURRENT_LOCATION
    RPT_DATE
    EMPLOYEE
    EMPLOYEE_TYPE
    #Get the CSV file and connect to the SharePoint list
    $vessellist = import-csv -Path C:\Temp\VesselInPortReport.csv
    $l = (Get-Spweb "http://devmy101").GetList("http://devmy101/Lists/smarInPort")
    #Get the lists EmployeeType field (choice)
    $employeeType = $l.Fields["EmployeeType"] -as [Microsoft.SharePoint.SPFieldChoice]
    #Loop through the items and add them to the list
    $r = 1;
    foreach($item in $vessellist)
    $ni = $l.items.Add();
    #Add the Title, using the rows VESSEL_NAME column
    $ni["Title"] = $item.VESSEL_NAME;
    #Add the "Date Recorded" field, using the csv rows "RPT_DATE" column
    [DateTime]$rd = New-Object System.DateTime;
    if([DateTime]::TryParse($item.RPT_DATE, [ref]$rd)){
    $ni["Date Recorded"] = $rd;
    #Add the csv rows "TRIP_NO" column to the new list items "Trip Id" field (SPFieldNumber)
    [Int64]$tn = New-Object System.Int64;
    if([Int64]::TryParse($item.TRIP_NO, [ref] $tn)){
    $ni["Trip Id"] = $tn;
    #Add some other text properties
    $ni["Flag"] = $item.FLAG;
    $ni["Agent Name"] = $item.AGENT_NAME;
    $ni["Current Location"] = $item.CURRENT_LOCATION;
    #Add user information
    $ni["employee"] = $w.EnsureUser($item.EMPLOYEE); #In this case, the $item.EMPLOYEE value from the spreadsheet is a persons name. Eg. "Matthew Yarlett"
    $employeeType.ParseAndSetValue($ni,$item.EMPLOYEE_TYPE); #In this case, the $item.EMPLOYEE_TYPE value from the spreadsheet is valid choice present in the EmployeeType list field. Eg. "Manager"
    #Update the item
    $ni.Update()
    Write-Host ([String]::Format("Added record:{0}",$r));
    $r++;
    Regards, Matthew
    MCPD | MCITP
    My Blog
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.
    I just added a webpart to the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • How can we insert a field when it is null and not present in database?

    I am working on a report in CR XI..i have strucked ata point where i am unable to find solution..my report has fields like Financial supply and physical supply..as a froup...but both are not displaying on all pages as there are no values to be displayed in them..even though how can i display both fields in all pages ..no matter what the figures are but i need these both fields to be displayed..plz help me out?

    Â Â Â Regards
    Â Â Â Sunil
    I have tried ur formula but unable to get the solution...
    as there are already the same fields with existing records..all i want is how to get the field where the values doesnt exist....i.e..fin supply and phy supply exists in one zone and doesnt have values in other zone...so huv to insist the physical field into the table?

  • How can I add a field to a Repeating Frame in the body of a 9i Report

    How can I add a field to a Repeating Frame in the body of an Oracle 9i Report whose source is in a higher group?
    I want to change an Oracle 9i report. The report has no header or trailer but only a body. The body has the parent frame fields & a repeating frame with four fields, A, B, C & D. They all seem to be in one group. I want to add another field E to the repeating frame whose source is from the 'header'.
    I added the field & created a boiler plate & then added the new field, E to the original group A, B, C & D. In the Property Inspector for the field, I pointed the source to the source column in the main query. However, when I run the report, I receive the error "Invalid body size". Some notes on Metalink indicate that this could be due to margins being out of the printable area.
    Moreover, after making the changes & after having unsuccessfully run the report, when I try to open the Page Layout for the report, I get no details.
    Thanks,

    Hi,
    i also got same query can u pls tell me elaborately, if u can can u pls send some code.
    Thanks & Regards
    Jagadeeshwar.B

  • How can i transfer a field value in the main report to its sub-report?

    <p><font face="Arial" size="2">How can i transfer a field value in the main report to its sub-report?</font></p><p><font face="Arial" size="2">Please eloberate with example if possible!</font></p><p><font face="Arial" size="2">Thanks...</font></p><p> </p>

    <p>You can do a couple of things - one would be to pass the information using the data linking expert.  Right click on the subreport, choose &#39;Change Subreport Links&#39; and select the field(s) you are wanting to pass to the subreport.  CRW will build parameters and a record selection formula for you in the subreport, and if that&#39;s what you want, then great.  But you can also remove the selection formula from the subreport and work with the parameter fields in the subreport however you would like.</p><p>Alternatively, you can look to passing Shared variables back and forth from the main and subreport.  this link talks about the method to do this: http://diamond.businessobjects.com/node/251</p><p> </p>

  • How can I set the field ICt in component table of the Tasklist as "Input" ?

    Hi experts,
    How can I set the field ICt (BOM's Item Category (POSTP)) in component table of the Tasklist as "Input" Status (The system is in gray now).
    I can define the different Category value by IB01 or IB02,then I can select them at the Tasklist's component table.But sometimes I need batch input such as LSMW,so pls kindly tell me how to setup it,thanks!
    Yinjun

    Hi,
    BOM is created with some component and item category.
    In task list when you go to component, in normal case one selects and copies BOM over there by clicking component selection button.
    Once BOM is copied over there the BOM item category will get copied. As it is BOM item category in Task list it is greyed and it will get copied automatically from BOM.
    You specify item category required by you in IB01 or IB02 and then use that BOM in task list. Go to componenet tab and click component selection button. Once BOM is copied over there the BOM item category will get copied

  • How can we make a field confirm control compulsory field

    how can we make a field 'confirm control' compulsory field while creating a vendor code
    this field is under tab default data material tab while creating vendor code in purchasing org .part of vendor

    Hello,
    This can be done using the configuration..
    Go to Logistics - General >Business Partner>Vendors>Control>Define Account Groups and Field Selection (Vendor)--> and select the vendor group for which you want this field to be mandatory.
    Press details --> in the block "field status", double click Purchasing Plant and again double click Plant level purchasing data, in the second page (down), you can see the confirmation control key, that you have to make as req entry.
    If you want the conf control key to be mandatory for all the vendors groups, then you can do this by purchasing organisation level..that config node is just below this settings.
    Regards,
    Sakthi

Maybe you are looking for