Auto populate list form based on lookup field

I have a SharePoint list form.  
When a user is filling out a new form I would like them to select from a lookup list.  The list that is being used for the lookup has two columns a name and a web address.   Once the end user selects the name from the dropdown list I
would like the URL to display and alow then to click on it.
I am quite proficient with SharePoint and SharePoint Designer but I am not a developer so please draw the dots close together :)
Thank you

Unfortunately i am not in position to write full solution at this moment but you might take a loot at this link to get value from list using jquery:
http://spjsblog.com/2010/02/26/display-information-from-another-list-based-on-a-lookup-column-connection/
Just try it out and let us know in case you get any error.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help

Similar Messages

  • AUTO Populate a Form's Field with MySQL Table Field(s) Data

    Hi,
    I can easily make forms that add, edit/update, delete.
    But I want to be able to populate a form field (usually a popup field) with a selection of records from a specific table.
    Say I have a table: CARS
    That has fields: MODEL, MANUFACTURER, PRICE
    I want to populate the form field named Model with all the CARS:MODEL values in the table.
    ...and some times...
    I want to populate the form field named Model with all the CARS:MODEL values in the table where CARS:PRICE < 20,000
    Now, I am fine with the whole HTML, MySQL, PHP programming and can do this all by long-hand coding.
    But I'd like to speed it all up and use Dreamweaver! :-)
    AND I'd like the edit/update forms to also selected the current records value and make it SELECTED whilst also holding all the other values..., using Dreamweaver.
    I can do this all by long-hand coding, but I'd like to speed up my development (and colleagues) and use Dreamweaver! :-)
    I hope all we need is a pointer to which menu items to use for this way of working within Dreamweaver...
    Thank you,

    Take a look at DW's Dynamic Form Elements server behaviors.

  • Auto populate in forms

    I'm creating textboxes in a form where multiple users will fill out their contact info.  As I fill in the text box the lines below a given column automatically populate with the information above.  So if in line 1  I filled out John Smith for name When I began typing for line 2 John Smith would auto populate.  I'm not sure because the PDF was created before I started my current job but I think it was a PDF created from a word doc.  Any advice would be much appreciated, thanks.

    If the field names are the same, this is the behavior that you will get. So if you want to avoid this, simply give the fields unique names.

  • Auto populate List Column

    I want to auto populate a Column that's in all my document libraries.  I want to set this Column to the document library name.
    I know I can create an ItemAdding Event Receiver to grab ListTitle. 
    But my situation wouldn't be based on an event.  I only want to run this once to populate this Column, then it will never change.
    I would have to be based it on a WorkflowStarted.  But in the WorkflowStarted Event Receiver, I don't see how to grab ListTitle.
    Does anyone know how to grab ListTitle in the WorkflowStarted Event Receiver?
    Or do you know of another way to grab ListTitle and populate a Column with that value?
    thanks!

    Hello,
    You may try with "properties.ActivationProperties.List" to get current list name.
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/06/28/how-to-access-list-item-in-workflowstarting-event-receiver-when-required-documents-to-be-checked-out-option-is-set-to-yes.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Select MULTIPLE default values for a multiple selection list box based on another field in Infopath 2010

    Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
    I visited.
    I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
    I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
    Add another Value Below and set the Default Value for this field to setup multiple default values.
    However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
    default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
    Please let me know if you need more info. Appreciate your help.
    Thanks!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to populate a form based on values in a database with JSTL?

    I know how to write Java code to connect to a database, but where exactly (and how) in my JSP page , using JSTL tags will I actually call the function that connects to the database?
    Should the code to connect and populate the Java Bean fields go into the JavaBean constructor or anther method ( but from what I understand I can't really call the Java Bean's methods through JSTL - unless I did it througha scriplet)

    I know how to write Java code to connect to a
    database, but where exactly (and how) in my JSP page
    , using JSTL tags will I actually call the function
    that connects to the database?You won't. The point of writing JSPs with JSTL is to realize that the purpose of JSP is to produce HTML, and not to do extraneous things like accessing databases. You would write a servlet that connects to the database, extracts the data, and puts it somewhere the JSTL can find it. (Most likely in a List object in request scope.)
    Then the servlet forwards to a JSP, where you use JSTL simply to scan through that List and convert the objects in it into HTML.

  • How to save a form based on a field name

    Hi I am new to this form so please bear with me.
    I would like to set up a form and based on the employee name field use that as the recomended file name under the save as function.
    Also how can I stop a user from saving the form ontop of the template. IE saving the file with confidential information on the original file name.
    Thanking you in advance for you help.

    Hi I am new to this form so please bear with me.
    I would like to set up a form and based on the employee name field use that as the recomended file name under the save as function.
    Also how can I stop a user from saving the form ontop of the template. IE saving the file with confidential information on the original file name.
    Thanking you in advance for you help.

  • Auto populate a textfield based on users input

    Hi All,
    Working with Designer ES ver. 8.2, and I am looking to see if it is possible to auto fill another field based on an end users input.
    Example: End-user enters a 6 digit departmentCode for a program; in turn the field opposite to the departmentCode auto fills with a corresponding programCode; if they do not input the correct 6 digit departmentCode the field will return a null value.
    I am trying to move away from my current auto fill drop-down option, so end-user is less likely to select incorrect departmentCode from drop-down
    Best Regards
    Jeff

    radzmar,
    Thank you for your response, I assumed there was a simple script to accomplish my task. I had assumed that the .rawValue property would have come into play and was unaware of the  xfa.event.fullText property.
    Thanks Again

  • Using JavaScript to auto populate a field based on numeric value of a separate drop down field

    Hello, I am trying to set up a simple, I hope, javascript which will enable to me auto populate one field based on the numberic value of another field using Acrobat Pro XI.
    Essentially I have 2 drop down fields (we'll call them DD1 and DD2).
    DD1 is the sum of 8 preceding drop down values. That sum can be anywhere from 0 - 40. Whatever that sum falls within a range which identifies a rating. The ratings and ranges are below:
    0-8: Non-Performer  
    9-16: Low Performer  
    17-24: Performer  
    25-32: High Performer  
    33-40: Exceptional Performer
    DD2 is where the rating ("non-performer", "low performer", etc.) will be captured. Instead of requiring the user to look at DD1, determine the value, and then identify and input the rating manually, I would like DD2 to auto populate the rating based on the value (sum) in DD1.
    For example, if DD1 shows a value of 27 then DD2 would auto populate "High Performer". So how do I write this code or execute this? In excel I would use an if, then statement. Is there something similar in Acrobat Pro XI.
    Any help is greatly appreciated. Thank you in advance.

    If you use a text field, the custom calculation script could be:
    // Custom calculation script for text field
    (function () {
        var s = getField("DD1").valueAsString;
        // Blank this field if input is blank
        if (!s) {
            event.value = "";
            return;
        // Convert string to number
        var v = +s;
        // Set this field's value based on the input
        if (v <= 40 && v >= 33) {
            event.value = "Exceptional Performer";
            return;
        if (v < 33 && v >= 25) {
            event.value = "High Performer";
            return;
        if (v < 25 && v >= 17) {
            event.value = "Performer";
            return;
        if (v < 17 && v >= 9) {
            event.value = "Low Performer";
            return;
        if (v < 9 && v >= 0) {
            event.value = "Non-Performer";
            return;
        // If none of the above fit, blank this field
        event.value = "";

  • How do I auto populate the date into text fields when form is first opened?

    Hello,
    I read all about the changing the scripts but its not really working for me. I was hoping someone could help me with directions on how to auto populate the date into designated text fields when my adobe document is first opened?
    I am working in Adobe Acrobat 9.
    Thank you,
    Sheri

    When you add a new document JavaScript (Advanced > Document Processing > Document JavaScripts > Script Name (enter something) > Add), you will be given a function skeleton by default. Just delete it and enter the line of code I showed above. Now, whenever the document is opened, the code will get triggered and the field will be updated with the current date. There is no "Document Open" action (at least that's accessible via Acrobat's UI), but this is effectively the same thing since any document-level JavaScripts are executed when the document is opened.

  • Auto-populating fields based on another field (must access dif record type)

    This is a long one. I basically want to know if it's possible to have several fields auto-populated based on the data in another. It gets a little tricky here, because the information I want to auto-populate will have to be searched for in another record type. An example will hopefully make my request clear:
    I have 10's of thousands of records of the "Product" record type that each have a product number. Well, let's say I have several fields to enter into an "Opportunity" record type, based on the information for this product number in the "Products" record type. I want to know if I can enter the product number on the "Opportunity" record, and have OnDemand go look up this product number in the "Product" record type, pull information from that record, and auto-populate that additional information in certain fields back on the "Opportunity" record that I am entering information for.
    I know a workflow can do this on simple things where you have a few different part numbers and can create a workflow for each, but I literally have 40k part numbers, and I can't very well create that many workflows. If there was a way to dynamically script the workflow to use the part number in the field on the "Opportunity" record and go fetch the data to auto-populate, that would be nice.
    I also can't use a cascading picklist because, again, there are around 40k products records and picklists have a limit to how many choices you can have.
    My think tank has run empty, and I am out of ideas. I was wondering if there is any other way to get this done, or if it's even possible?
    Thanks,
    B
    Edited by: user10885599 on Feb 5, 2009 11:54 AM

    As I read this, I am wondering if you would be able to use the new JoinFieldValue() function to update the fields. The problem is that the Opportunity record does not have a direct link to products. The Revenue table does however, so you should be able to do this from Revenue, if that is how you are using the application.
    The process would be to create a workflow that watches for new Revenue records, and updates the new fields in the Revenue object using the JoinFieldValue function to pull the data.

  • Create Custom list form and validate fields using sharepoint designer 2010

    Hi All,
    I have a requirement to create a custom job application form which will be filled and submitted by anonymous users. I have a an option to create custom user control web part but I wanted to
    create it using custom list form using SharePoint designer. My requirement is below
    Date of birth (user age should be above 22yrs )
    Email Validation
    Phone validation
    Resume attachment (should attach only word documents or PDF)
    Qualification (If other is selected then show textbox else hide)
    Can above validations be done using SharePoint designer (JavaScript or validation controls)? Or do I have to create custom control web part?
    MercuryMan

    Hello,
    I think jquery/javascript can be used to put validations on those fields. Fortunately some of validation can be done via sharepoint itself like: email, phone, age. For Attachment and Qualification fields use jquery/JS.
    See below link for column validations:
    http://thechriskent.com/2012/08/15/validate-phone-number-columns-in-sharepoint/
    http://sharepointsolutions.com/sharepoint-help/blog/2011/12/how-to-validate-an-email-address-using-column-validation-in-sharepoint-2010/
    See this for attachment:
    http://stackoverflow.com/questions/4234589/validation-of-file-extension-before-uploading-file
    For qualification:
    http://sharepoint.stackexchange.com/questions/88064/hide-show-field-on-list-form-based-on-value-from-another-field
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Auto populate forms from a database

    I'm new to LiveCycle and was wondering if there is a way to auto populate a form created in LiveCycle. Essentially, I have an Excel spreadsheet with a thousand or so entries. I'm looking to create a sort of cover page from all this data for each individual entry featuring name, address, etc. I can convert the spreadsheet to an XML file, but after that I get lost. Is there a way to set up a form so that it can autocomplete all of the fields using an XML file or is this something that I need to do manually?

    LiveCycle Forms is designed to accept a form template and an XML datastream and merge them together to provide a populated PDF that is interactive.  For a non-interactive version of the template LiveCycle Output would be utilized.  There are a number of methods to interact with LiveCycle but it sounds like the easiest method for you would be to use a watched folder where you would simply copy your XML files and LiveCycle will read the file and produce the PDF files.  To start use Workbench and create a process that uses the RenderPDFForm operation.  You might want to start with these http://www.adobe.com/devnet/livecycle/videotraining.html

  • Custom List Form creation using Powershell - SharePoint 2013

    Hi,
    I have a custom List called 'IssuesList' with 4 fields - "IssueTitle","IssueID","IssueDesc","Status"
    While displaying display form I should show 3 fields expect Issue ID i.e. IssueID should be hidden.
    and on edit form only Status field should be editable. So using SharePoint designer I created respective Edit form and display forms and changed XSLT to control the display mode on the fields.
    I have everything scripted in powershell till now - creation of custom list, publishing pages, webparts etc. however I am looking for how to provision or associate these 2 list forms with IssuesList after I create the list in new site.
    I have restrictions on using wsp and site/list template due to business needs. So I need to know if there is any way I can upload these 2 files after I create custom list in powershell and associate them as defaultdisplay and defauteditforms?
    Please advise.

    Hi,
    Per my understanding, you might need to apply these custom forms to a list after list creation using PowerShell.
    With PowerShell with SharePoint Object Model, we can hide fields on list forms.
    The similar thread below with code snippet will provide more information about this:
    https://social.technet.microsoft.com/Forums/en-US/ee6fc2eb-197f-4144-94fa-8a4e438675d9/hide-a-field-from-edit-form-list?forum=sharepointgeneralprevious
    If there may be other requirements except for hiding fields, as you have limitation on using custom solution package(which should be preferable in such scenario),
    a workaround I can provide is that, after list creation, you can add Content Editor Web Part contains the CSS style or JavaScript to the form pages of a specific list, it will help you hide/disable the specific elements, this can be achieved programmatically.
    The code below can add a Content Editor Web Part to the DisplayForm of a list(though in C#):
    public static void AddCEWP()
    SPLimitedWebPartManager manager = null;
    SPFile file = null;
    using (SPSite site = new SPSite("http://sp"))
    using (SPWeb web = site.RootWeb)
    try
    web.AllowUnsafeUpdates = true;
    file = web.GetFile(web.Url + "/Lists/List018/DispForm.aspx");
    manager = file.GetLimitedWebPartManager(PersonalizationScope.Shared);
    ContentEditorWebPart webPart = new ContentEditorWebPart();
    XmlDocument xmlDoc = new XmlDocument();
    XmlElement xmlElement = xmlDoc.CreateElement("HtmlContent");
    //xmlElement.InnerText = "<strong>Hello World!</strong>";
    //write the custom CSS style or JavaScript here
    string content = "<style>your custom style here...</style>";
    xmlElement.InnerText = content;
    webPart.Content = xmlElement;
    manager.AddWebPart(webPart, "Top", 0);
    manager.SaveChanges(webPart);
    web.Update();
    catch (Exception ex)
    //Utility.SPTraceLogError(ex);
    finally
    if (manager != null)
    manager.Dispose();
    web.AllowUnsafeUpdates = false;
    About how to hide fields on Standard List Forms using jQuery:
    http://social.technet.microsoft.com/wiki/contents/articles/21730.sharepoint-2010-conditionally-hide-fields-on-standard-list-forms-using-jquery.aspx
    http://stackoverflow.com/questions/10010405/how-to-hide-a-field-in-sharepoint-display-form-based-on-the-field-name-jquery
    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

  • Custom View in Designers Rollup Header from Lookup Field

    Hi!
    I have a task list that is rolling up a couple of different ways. I'm having some issues getting it to be just right.
    1) Rollup display. The rollup is working great except:  My task list is using a lookup field on an list of initiatives. The look up grabs 3 other fields from the initiatives list (LOEs, Objectives, and Organization along with initiative name). 
    I'm rolling up by LOE > Objectives > Initiatives and then the tasks listed under the initiatives. When the initiative line displays it carries with it the code for going back to the initiative list. I am attempting to apply a different format to it but
    I'd really like the URL there to open up the initiative but can't figure out how to get it display. When it displays now it has [<xsl-value-of node-walk="1236" select="$fieldvalue"><a onclick="OpenPopUpPage('URL', RefreshPage);
    return false;" href="URL">Initiative Name</a>]. It is displayed as text. Is there a way to format it so it is a URL? The options I have chosen do not work.</xsl-value-of>
    <xsl-value-of node-walk="1236" select="$fieldvalue"></xsl-value-of>

    I read that Lookup/ Combo box field cannot be added in a self registration form. Is it true?
    (Source:
    Link: Adding combobox in self registration from
    Link: OIM: problem with combobox in self registration form

Maybe you are looking for

  • Error while duplicating a panel with control dynamically associated to a splitter

    When you try to duplicate a panel where a control has been dynamically created and associated to a splitter, you receive error -153: Item is already attached to splitter control. See attached project which shows this behaviour: you can move the split

  • External Hard Drive using 7 port hub

    Not sure if anyone has had this problem but I thought I'd mention it in case it helps someone. I have a 20 inch iMac (Intel) 500 G, 2 G RAM operating system OS X 10.5.8 and purchased Seagate GoFlex Desk 2 T External Hard Drive to use to store picture

  • Can we simulate the accounting document before releasing in SD

    Hi Gurus, Can we see the document in simulation view before releasing it to accounting, Is there any other way out? please help me... Regards, Divyesh

  • User management -logic thinking

    currently , i have many users to be managed in user management... i set up my webydnpro to authenticated the user, i will based on the user role and then restricted the access to the application, can view only their department stuff... let's say a 5

  • How to connect LDAP though SSL

    Hi, I had successfully configured iDS4.1 to be a Naming Information Server, and I applied a Test cert to it which generated from Verisign. Now I would like to let all LDAP client connect to my LDAP server though the encrytion port 636, what should i