How to validate a list form?

Hi All,
My requirement is simple, I need to validate a simple list form with some set of conditions.
So decided to deploy application pages and use the code behind to apply the conditions and map the application page to Edit/New form of the list. Can this be done and any references?
Thanks.

Hi,
Per my understanding, you might want to validate a list form with custom conditions.
If the validation can be achieved by using client side technology such as JavaScript, a suggestion is that you can customize the built-in NewForm/EditForm
of the list and implement your validation there.
It is also a good choice to create a custom application page in this scenario, we can write C# code for the validation and handle the form submission.
About
how to create custom application page:
https://msdn.microsoft.com/en-us/library/ee231557.aspx?f=255&MSPPError=-2147217396
https://msdn.microsoft.com/en-us/library/ee231581.aspx
For the data accessing part, you can use SharePoint Object Model:
Add, Update and Delete List Items Programmatically in SharePoint
http://www.mindfiresolutions.com/Add-Update-and-Delete-List-Items-Programmatically-in-Sharepoint-372.php 
More information about
SharePoint Object Model:
http://msdn.microsoft.com/en-us/library/ms473633.ASPX
Best regards
Patrick Liang
TechNet Community Support

Similar Messages

  • How to publish infopath list form changes from one environment to another

    How can we move InfoPath customized list form changes from one environment to another example Development environment to UAT environment? We can save that as source file and update url on the .xsn file. But is there any other way we can do it?
    Rajasekar A.C

    Hi,
    You can save the list as template in source environment. Download the template for List Templates, upload in the same location in Destination site. The customized infopath should go with it. Let us know if that doesnt work.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • How to make menu/list (form) item open in it's own window instead of blank one?

    Items in a form (list/menu) that I've created are opening in a blank window (pop-up) when clicked. I would like them to open in "self" mode so that pop up blockers on various computers don't become a challenge for site visitors. Can anyone please tell me how I could make that adjustment using Dreamweaver? I am a novice (if that) in coding, so if there is a design view solution that would be absolutely awesome. Any assistance to get me on the right track would be GREATLY appreciated!! BTW I also made the form a library item (just in case that fact is needed). Also if you need to see the actual link it is
    http://www.graphicmechanic.com/DEKALBCOUNTY/index.html. The "I WANT TO" list is the part I'm referring to.
    I am also attaching 3 files (the .lbi file, the template and the page both are applied to).
    I tried a couple of things already. One was javascript, but I still seemed to have problems, the others were selecting the form and changing the target to self. Another developer said that I would need to apply the target attribute to each link, but I am having trouble doing this.

    No.  They removed that functionality as an improvement to iTunes in version 11.    I saw one person mentioning making a screen grab of the window and displaying it as an image in Preview while looking at the actual iTunes in another window, but it doesn't quite strike me as being the same...
    http://www.apple.com/feedback/itunesapp.html

  • How to open Modal list form in SharePoint 2013

    Hi,
    in SharePoint 2010 the following opens a new item form in a Modal dialog, but in SharePoint 2013 it opens the form in a new window:
    <input onclick="javascript:NewItem2(event, &#39;http://intranet.pcycnsw.org.au/activities/pcycbrandedprograms/toipadmin/Lists/Courses/Item/newifs.aspx&#39;);javascript:return false;" type="submit" target="_self" value="Add a Course"/>
    In SP 2010 you get a nice pop up modal dialog and the user doesn't leave the page they launched the dialog from.
    In SP 2013 the same code works, but doesn't open the form modally - instead it opens the form in a full page.
    What is the equivalent method for SP 2013 so that I can get the form to open in a modal pop up like in SP2010?
    Mark

    Hi Kelly
    You can run this javascript line from the modal:
    window.top.location.reload();
    or
    parent.location.reload();
    Please mark it as helpful if it helps you solving your problem
    Amit Kotha

  • How to set a list form field data value that is linked to another document library's data when the link gets broken!!??

    In summary, I have created 3 document libraries and one issues list in a site collection.
    The issues list has a form that has mainly been created in SharePoint 2010 but tweaked in InfoPath 2007 and one of the fields links to the title of a document in the first document library (so an issue can be linked/referenced to a particular document).
    This all works great until I want to move a document (using the workflow that I built) from document library 1, to document library 2 or 3 as this is what I've set up to move documents through the business process we are taking it through.
    When this happens, the link between the issue that was raised originally against the document is broken and therefore you can no longer tell which document the issue is linked with.
    Does anyone know a way of 'setting' the field that is linked to data in another document library on original selection/creation of the issue, so that when the link is broken the original data remains.
    Any ideas welcome as I am stomped!!! 
    Cheers!!
    Louis Maxwell

    
    Hi  Louis,
    According to your description, my understanding is that you want to keep the link field of the issue list working after moving the linked document.
    Whether the link field  is a lookup column or not ?
    If so, due to the information source of  lookup column cannot be changed, you need to add other lookup fields for document library 2 and document library 3. Just one lookup column corresponds one document
    library. Then you can update the lookup column in the workflow when move the linked document. Such as when a document is moved to document library 2, you need to clear the lookup1 field (corresponding document library 1) and update the lookup2 field (corresponding
    document library 2).
    For updating the lookup column, you can refer to the following actions:
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to Validate a Portal Form field from the database

    I created a Portal Form based on a procedure, which requires three parameters. One of the parameters is Item Number. I need to check if the Item Number exists in database. I am trying to use pl/sql button event handler, where I try to use the select count(*) statement to verify. However, I don't know how to reference the form field in the where clause. Please advise. Or is it possible to achieve this by creating a javascript? If you go to 'Shared Component' provider and click on javascript, you will see some system validation scripts, which you can call in the form level validation. My doubts with javascipt is how I can talk to database in the script? Any input is appreciated.

    Hi,
    You cannot access the DB from the script. If you want to access the values of a field you should use session variables. Here is a sample to access the values of a form field.
    declare
    ticket_no varchar2(20);
    flight_no varchar2(20);
    blk varchar2(30) := 'DEFAULT';
    begin
    ticket_no := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_TICKET_NO');
    flight_no := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_FLIGHT_NO');
    end;
    Thanks,
    Sharmila

  • How do I customize the forms to the SharePoint list

    I need to customize a form to a SharePoint list that I created in Visual Studio.
    After the deploy list, try to customize the EditForm.aspx, NewForm and forms, however when publishing the form of a message that basically says catastrophic error is displayed:
    This form is not a standard SharePoint.
    How do I customize the forms to the list created?

    Hi,
    Here is a link which describe how to customize SharePoint list forms using Visual Studio, Please compare it with your code and see if there is any possibility causing the error.
    http://www.codeproject.com/Articles/223431/Custom-SharePoint-List-Forms
    More important, I’d strongly recommend you using InfoPath Form to custom list form for SharePoint. For your convenience:
    http://msdn.microsoft.com/en-us/library/office/aa947697(v=office.15).aspx
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • Validate from list (Oracle Forms)

    Hi all,
    Does anybody know, how to simulate "Validate from List" functionality from the oracle forms with JDeveloper 10.1.3.
    The case is for example (Empl, Dept), I want to create a table for the empl showing the empl info plus department name and allow the user assign the empl to a given department using only the name and not the department id.
    Many thanks in advance.
    Edited by: user5772728 on Feb 20, 2009 8:56 AM

    Hi,
    there is no list validator like this I am aware of.
    Frank

  • 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

  • How can i see events in iPhoto in list form?

    I just got an iMac and have imported all my photos from my PC to iPhoto. Now I want to view the "events" in a list form, but can't see how to do that and can't find any info in Help or the user interface. Anyone know how to do this?

    Go to the Photos mode and in View enable Event Titles:
    Then you'll get this type of list:
    To open or close all events at one time Option-click on the triangle at the beginning of the Event title.

  • How do you get your opening page back to album cover status instead if being in a list form

    WHen I open up itunes it always showed recently downloaded items in an album form now it got changed to a list form and I cant get it back to the album view does anyone know how to do this.

    Assuming you've got an iTunes version 11.x, click on the word "Albums". Here's a screenshot showing where to find it:

  • How to have digital signature in a Sharepoint 2013 custom list form created in InfoPath 2013?

    I have a requirement that they want a form in SP13 that would allow Mobile mode.  Supervisor then can sign off the form in mobile mode.  Because Document Library form doesn't have Mobile client support so I decided to create this as a custom List
    form.  Now I'm finding out that when I right click on the section on the form to enable e-signature, there is no such option.   I appreciate it if someone can give me some suggestion on how to have a form that has both Mobile mode and e-signature
    support in SP13.
    I also noticed that the people picker doesn't work in Mobile mode.  Is that so or is there something-else I need to configure?
    Thank you.

    Hi,
    According to your description, my understanding is that you want to create an InfoPath form which supports Mobile mode and e-signature in SharePoint 2013.
    Per my knowledge, the browser-based forms cannot support signature in Mobile device.
    Here are some other products which are not free can achieve this goal for you to take a look:
    http://forums.qdabra.com/2013/06/signing-infopath-forms-part-1-electronic-signatures/
    http://www.formotus.com/16563/infopath-alternatives/infopath-forms-filling-weigh-the-options
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to validate multiple lines which is exist in the form builder at the same session

    Hi All,
    we are working on oracle Forms personalization to trigger the message at the point of saving multiple lines rather than requiring each line to be save individually. Currently the oracle form is allowing to user to enter two distinct lines that have same resource and basis type in BOM.
    Currently the Oracle form is allowing to enter the duplicate combination and not giving any error message even we enter the same combination of data.
    As per the customer requirement, they don’t want to validate the data while creating the records but when they try to save the form, in that case it should validate all the records at a time then need to display the appropriate message.
    Customer don’t want to customize the Oracle standard form. Here we have only option to use form personalization or through custom.pll.
    Any idea on how to validate multiple lines which is exist in the form builder at the same session as before inserting the record itself need to perform the validations for all the records.
    Thanks for your help in this regard.
    Regards,
    Thirupathi

    you can write a post script which will do the necessary tasks.
    I mean, once you are done with inserting records into these tables, exeute another procedure which will insert these "extra" records, based on some logic.
    you may not be able use DB trigger as it may generate mutating error or if you don't write it carefully, it will go into recursive loops as you are refering to same tables.
    HTH

  • How to list Forms (*.fmb) in File -- Open dialog box by default?

    I am Using Forms 6i.
    Whenever in Forms Builder, I click File--> Open, it lists 'All Files (*.*)'. How can I configure form Builder so that it lists 'Forms (*.fmb)' by default whenever I click File--> Open.
    Pl. guide.
    M. Tariq

    I'm afraid you can't. You'll just have to pull down the poplist for that mask

  • How to validate input fields as the user is filling up a form with jQuery?

    Hello EA friends.
    Someone has experimented on how to validate input fields as the user is filling up a form with jQuery?, if the field is numeric and insert an A for example, an alert appears showing "insert a number" or not allowed to enter anything until a number is entered.
    Thanks and regards.
    Fer

    Hi Sudeshna.
    Sorry for not responding on time, how can I be included in this code?
    sym.setVariable("typeActivity", "input")
    var Element_1=document.createElement(typeActivity);
    $(Element_1).css({"text-align": "center"});
    //Answer
    sym.setVariable("Answer_1", "4");
    sym.$("box_1").append(Element_1)
    This code is on my creationComplete and it works fine.
    Would greatly appreciate your help.
    Regards.
    Fer García

Maybe you are looking for

  • One music album fragments into many. How to prevent?

    (This is a problem that happens when I use my preferred method of viewing albums, "show items in a list, grid or with cover flow) When I import a single album which is a 2 or 3 CD set onto i-tunes, it shows each CD as a separate album, even though th

  • More than one Quant in a Storage bin section (Strategy P)

    Dear all, We have a Storage type with Putaway strategy P, the SUT check active but no SU Management active, Mixed storage = X and Addition to stock = X. For this Storage type, our Storage bin type and SUT we have set up in customizing a Bin sectionin

  • Login as sysdba

    I discovered that when i connect as a user (existing or non-existing) with sysdba privilege, Oracle connects me into sys´s schema as sysdba. i want to know if it has been discovered before now because it is indeed a big security issue that must be at

  • My mid 2012 Macbook pro's built-in camera won't come on, even with native Apple apps.

    This was an issue before I installed Mavericks (just today -- October 22, 2013). After resetting PRAM, CMS, restarting, the camera came back briefly yesterday, nowhere to be seen since.

  • Setting up 3G on macbook

    hi ..... can anybody help me to setup a BSNL 3G usb modem (make micromax310G) on my macbook. i installed the software package and it even connects to the net but the speed is pathetic. any help is most welcome because i am new to mac Message was edit