Column Validation on Single Line of Text

I have a sharepoint input form in SP2013, which contains text field with below properties
1. Type: Single line of Text
2. Under Column validation
 =AND(ISNUMBER([Column name]+0),ISERROR(FIND(".",[Column name],1)))
On form submit, the above condition evaluates and throws an error if field value is non numeric field.(This is expected and working fine)
I also want to add another condition that should not allow preceding zero
example: it should throw error on 0122343(any number starting with zero)

You should achieve that with the following formula :
=AND(AND(ISNUMBER([Column name]+0);ISERROR(FIND(".",[Column name],1)));LEFT([Column name],1) <> "0")
If the first character of your column is 0 it fails validation
Regards

Similar Messages

  • Sharepoint 2013, Document Library: Sharepoint is changing data in a single line of text column to ISO8601 after modifying other columns

    Hello there,
    basically, as the title says: We have a Document Library on a Sharepoint 2013. Attached to every document are multiple columns, the type for every column is 'Single line of text'.
    One column is called 'billing date' and has suitable data in it, e.g. 01.01.2015, 26.02.2015, 29.03.2015 an so on.
    Sometimes when someone is editing an other column of the same document the data in 'billing date' changes from 01.01.2015 to 2015-01-01T00:00:00Z for that document, seemingly randomly.
    Is there any way to configure or prevent this?
    Thanks in advance and kind regards,
    Michael

    Hi,
    From your description, my understanding is that SharePoint changes the format of date in single line.
    It is very strange issue. I try to reproduce your issue in my environment, but everything is OK.
    To solve your issue, I need to collect some information, please confirm these points below:
    When will the format of date change? Does it change immediately when you edit the document or after clicking save button?
    Does the issue occur in this document library or each one in your environment?
    Do you have some special configurations for this document library?
    In addition, could you provide a screenshot as below?
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Single line of text/email id to People or Group column

    I have a list of employee details, along with their SharePoint email ID. I want to import this list along with a new People or Group column, where it reads the email id and picks the correct user from Active Directory. How to import this?

    Hi Abul,
    Based on your description, I did a test. When I used users' email address in excel table and imported it to SharePoint list, the column would be saved as Hyperlink or Picture type. If I used Domain\User, after importing it to SharePoint list, the column
    would be saved as Single line of text type.
    It seems that it only is converted into Single line of text or Hyperlink type when you import a table into SharePoint list, by default. There is not a way to convert the table column in excel file into People column in SharePoint list.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • HTTP Receiver Adapter payload as single line plain text with out any tags.

    Hi PI experts,
    I have a strange problem in http receiver adapter.
    Sender RFC (SAP)  Receiver: HTTP.
    Receiver system expects the output from XI in the below format in a single line plain text with out any tags in the payload. and the content type should be application/x-www-form-urlencoded
    Group=Test&Sentinel=Web%20Server&Facility=5345&Order Number=XT-XWHM-Y-NA&Serial Number=123456&@LABEL_QUANTITY=5&@LABEL_NAME=111114_Q
    Is there any way to achieve this using http receiver adapter. Business is not ready to accept the output from XI not even in a single element instead they only need it as a JUST a plain text.
    Appreciate early response on this.
    Thanks in Advance,
    Jitender

    Dear Ola,
    Could you elaborate how you achieved in catching the response data from the receiver in case of HTTP receiver adapter?
    The target service is not a WebService but some python script that must to receive some paramters via POST request.
         HOW can I post this parameters?
    Here you entered the fields of the message type of the request in the header parameters of the receiver adapter? Thats fine.
    But what about the message type and vice versa of the response from the receiver?
    Regards
    Rebecca

  • Newsletter layout, aligning columns, paragraph breaks and lines of text

    HI,
    I have never designed a newsletter before.
    It is annoying me because I am trying to be as meticulous as possible with my alignment, but I notice there are things all over the place that don't line up.
    I have a paragraph style, with space before and after. I have three columns. When I look at one line of text across all three columns, they do not line up. The WOULD line up if I had all straight text and no image wraps, but the image wraps, and the start of a new paragraph in column two, throws off alignment in column three.
    What is the best way to make stuff line up with the least amount of effort possible?
    Are there tutorials on good newsletter layout design? Grid layout?
    Thanks,
    Stan

    I just stated working with InDesign in my GA 101 class. It really was great fun but takes alot of practice. Still learning something new everyday. I  will be working with grids the next class and will be checking in the forum for help.
    Rhonda

  • Displaying data from multiple columns into a single line graph

    Post Author: hollowmatrix
    CA Forum: WebIntelligence Reporting
    Hey,I have an issue with the WEBI reporting.I have a data source that has multiple columns say ( month1, month2, month3, month4,.....month 12, month 13, ....month24) with the sales data for each month.Now say I call the month 1 to month 12 as "current year", and call month 13 - month 24 as "previous year".I want to put a prompt in the report which allows  me to select between "current year" and "previous year".Based on the prompt value we get a graph of the sales vs month ....as in if we select  "current year", then we get a graph of the sales Vs time( remember that the sales data for each month is in a different column.)and if we select  "previous year" then we get a graph of the sales Vs time for previous year..( sales vs time for Month 13, month 14, month 15....month 24).I am not able to pull data from multiple columns into a single object that I can use to populate the graphs.Any help on the same will be appreciated .   

    Hi,
    <p>
    please click
    here (asktom) and look for the words "how about the other way round"
    </p>

  • Formatting a 16 column report in single line?

    he project on which I am working demands a report of all the employees but for each employee there should be a single row only. no wrapping of a record.(Though, a single field not fitting the width can wrap as in case of most of the addresses but it should not be like that the address begins on one line and sal on the other) I have 15 fields regarding payroll details. I could not find the page settings for this. Help me out of this.
    Regards,
    Rajeev Puri.
    [email protected]
    null

    Hi Rajeev,
    You can get this effect by specifying horizontal elasticity as fixed and vertical elasticity as varaible for each field. In the layout arrange all the fields in a row by adjusting the size of each field. This way the fields will wrap to the next line if necessary but all the fields will start in the same row.
    Hope this helps,
    Haritha

  • Exporting to Tagged PDF: Why would every single line of text come out as a separate Span tag?

    I've inherited an InDesign file for which I have to generate a 508-compliant PDF. Normally this is pretty smooth with InDesign, and most issues have historically been pretty easy to fix.
    With this document, though, every single individual line is exporting to tagged PDF as a separate <Span> tag.
    I've turned off overrides and hyphenation, and looked for manual line breaks. I've also tried exporting it out to IDML and opening that, and the resulting PDF was no better.
    If anyone has an idea of whether there's some odd setting I'm missing that could explain why this is happening, that would be very helpful!

    Thank you for being so helpful and constructive.
    I tried to look at the ASDL settings, john46 but it's asking me for my HomeHub password... the only password I have is for our wireless network and that one doesn't work. 
    I can't test the phone line right now because I'll have to disconnect the internet and I'm currently working on another computer whilst chatting on this one with you. However I will do that later. I'll also look at the RogerB link you provided. 
    Truth is, we're pensioners who use the internet but we havent a grain of technical understanding between us. We're old fashioned enough to admit that we just want someone who knows what he's doing to come here and fix it for us. It's already cost us £130 for an engineer to come out from OpenReach to tell us the phone line is OK and it's the router causing the problem. Best case scenario is that another BT engineer who knows about broadband comes out and does it because the last BT person that I spoke to in Delhi did actually confirm that there is a fault on the BT side. I'm getting so frustrated right now I'll probably call out an independant I find in Yellow Pages and get charged an arm and a leg again and I'll then cancel with BT in a fit of pique.

  • Text Fields of an External Content Type come across as Multiple Line of Text

    In SharePoint 2013 I have an external content type that consists of a couple of short (nvarchar)  fields (no more that 15 characters). When I use this ECT in a custom list the fields from the ECT end up as a "Note" type instead of "Text".
    I am not sure how this happens. I have verified this by accessing the list via poweshell where I see the Type being as "Note" and also the SchemaXml showing the colName attribute as "ntext".
    The strange thing is that initially when I created the web application and built my lists this was working.
    Any ideas or pointers would be appreciated.
    Thanks

    Hi,
    Based on your description, my understanding is that When you use the ECT in a custom list the fields from the ECT end up as a "Note" type instead of "Text".
    Have you ever changed column types from "Single line of text" to "Multiple Lines of Text" in list?http://www.sharepointdiary.com/2013/09/change-column-type-in-list-using-powershell.html
    External content types are made up of fields whose types are a subset of the primitive types of .NET. For each such .NET type, a rudimentary mapping to SharePoint’s field controls exists, describing a field’s visual appearance. Fields of type string for
    instance will, on the new and edit forms, render as a single-line text field.
    Besides, check whether the following link is useful:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/0fcb5a9f-8445-4a37-9e60-ac5e9e14e8f1/sharepoint-designer-external-content-type-shows-single-line-text?forum=sharepointgeneralprevious
    Best Regards,
    Lisa Chen
    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]
    Lisa Chen
    TechNet Community Support

  • Converted single line text to multiple and want to have rich text editing in layout

    We had a text field in a site that was initially set as single line of text. We needed it to be bigger and also allow formatting. So I added the field into the page layout.
    Changing
    <SharePointWebControls:TextField id="habitat" FieldName="Habitat" runat="server"/>
    to
    <SharePointWebControls:NoteField id="habitat" FieldName="Habitat" runat="server"/>
    But it doesn't show any rich text editing options and displays the full html tags in the field.
    If I open the page in the edit properties screen instead, then the field displays as I want it with the rich text editing options available in the ribbon, and text showing as bolded instead of like this:
    <div>This is <strong>the </strong>habitat field.</div>
    This is a site using the 2010 Publishing template running in compatibility mode on a 2013 server.
    How can I get my page layout to behave the same way as the edit properties screen does?

    Hi,
    Here are two solutions for your reference:
    1. We can use the InputFormTextBox control to achieve it.
    <SharePoint:InputFormTextBox ID="habitat" RichText="true" RichTextMode="FullHtml" runat="server" TextMode="MultiLine" Rows="20"></SharePoint:InputFormTextBox>
    http://blog.qumsieh.ca/2009/01/13/how-to-add-a-rich-text-editor-to-your-custom-application-pages-or-web-parts/
    http://blog.mastykarz.nl/rich-text-editor-control-sharepoint-2010/
    2. We can use the RichHtmlField control to achieve it.
    <PublishingWebControls:RichHtmlField id="habitat" FieldName="Habitat" runat="server"/>
    http://msdn.microsoft.com/en-us/library/office/ms561507(v=office.14).aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Single line in standard report

    HI all,
    It would seem that with all the functionality of APEX, that the world just wants to copy the look of Excel :/
    How to wrap/nowrap the column value in an interactive report??
    The above post was great to come across and I can now make Interactive reports with a single (non text wrapped) line of text, making it easier to read if your're happy to scroll across the page forever.
    I've been asked to get the same functionality in a standard (non-interactive) report and have failed to achieve it. I've looked at the posts and proposed solutions here involving various uses of  nowrap and white-space in the page and/or template.
    I'm just after a single line of text per record in a standard report, no matter how wide the report gets. Is anyone able to help me out with this?
    NT

    It will be a lot easier to help if you provide the following information:
    APEX version
    Theme
    Region template
    Report template
    Browsers/versions used
    An example on apex.oracle.com is even more helpful.

  • Publishing a text box to be multiple lines of text in SharePoint Form Library

    Hello
    I have some text boxes on an InfoPath form which is then published to a SharePoint form library. However, when the form creates columns in the form library, some of the text boxes are being published as Single Line of Text which then cuts off some of the
    text as users can type more the 255 characters in the text box.
    My question is how can I make sure that the form publishes the field as a multiple line of text instead? Some of the boxes did this by default but there are others that did not and I am missing text on them.
    Thanks

    When you add the control to the form, choose the Multi Line of text option instead of the single line of text option, if you are unsure, when you add the control to the form, right click it and select properties, from here you can change the data type
    from single line of text to multi line of text.
    Regards
    Sergio Giusti
    http://sergioblogs.blog.co.uk/
    Whenever you see a reply and if you think is helpful, click " Vote As Helpful". And whenever you see a reply being an answer to the question of the thread, click "
    Mark As Answer".

  • Problems rendering Every-line Composer texts with Adobe Media Encoder

    I find the text paragraph setting "Adobe Every-line Composer" a huge time saver when dealing with large amounts of text in after effects. I rarely have to do any manual tracking or line breaks to make it look good, as opposed to working with the standard Single-line Composer.
    The problem is that when I render through Adobe Media Encoder (which I'm forced to do since they removed H264-mp4 support from AE:s internal renderer) the text is treated like single-line composed text. So the final render doesn't look like my AE project.
    I've found two solutions to this problem:
    1. Render a lossless video file in the AE renderer and then compress it with Media Encoder. This takes more time and HDD space, and it doesn't allow me to continue working in AE while rendering.
    2. Only use Single-line composed text and make all adjustments manually, the old school way. This would not be a problem if I had not already used, and fallen in love with, the Every-line option.
    Is there anyone that can think of a third, and preferably better, solution?
    I use the CC 2014 versions of AE and AMC.

    No, the text doesn't animate at all. It's just a normal static text box. The text part is extremely simple. All animations are done in other layers and pre-comps, combined with pre-rendered 3D graphics from Cinema 4D, rendered as image sequences. My problem is a bug, plain and simple. Or perhaps you could call it a "lack of feature support" or an "incompatibility between AE and Adobe Media Encoder".
    My problem appears only when my AE project has text boxes with the "Every-line Composer" option enabled (press the menu button in the Paragraph window to find it), AND the project is rendered through Adobe Media Encoder, no matter which output format I use. I have no problems what so ever inside of after effects, or when rendering Single-line Composer text in AMC.
    So, the problem is that Media Encoder doesn't recognize Every-line composed text. Instead it changes it to Single-line composed text, messing up text tracking and line breaks.
    To clarify: the Adobe Every-line Composer is analyzing the entire text box instead of only the current line. That way it can automatically change the tracking of individual lines to better distribute the line breaks and build a better whole, avoiding those stray words on the last line for example. Extremely handy, if you could only render it.
    I never wrote anything about animating text or that the codec is related to the text problems in any way. AMC is the problem. The codec is only a secondary problem since its the lack of mp4 H264 support that forces me to use Media Encoder in the first place, instead of using the AE render queue as I did in previous versions of AE. I like many things about rendering through AMC, like being able to continue working in AE while rendering, but there are still way too many glitches. And of course, there's the inability to render flv-files in AMC CC 2014, and Adobe's inability to provide a solution other than "Use an older version of AMC". Flv is their own damn format for christ's sake.
    Well, enough rambling.
    To put it simple:
    Has anyone had a problem with "Every-line Composer" in combination with Adobe Media Encoder? Did you find a solution other than the two less-than-perfect ones in my first message?
    Thanks!

  • Script to determine number of lines of text in a paragraph?

    I'm revisiting an issue I first posted here last summer, thanks to all who offered help, but I've not been able to sort it out.
    http://forums.adobe.com/thread/455526?tstart=0
    What I'm after is  a 'search function' to insert into a FindChangeByList.
    Jongware suggested the following - but when inserted into my list I can't get it to do anything - it doesn't throw up a Javascript error.
    app.findTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = "Callout_3";
    foundItems = app.activeDocument.findText();
    for (var i=foundItems.length-1; i>=0; i--)
      if (foundItems[i].paragraphs[0].lines == 2)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_2";
      if (foundItems[i].paragraphs[0].lines == 1)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_1";
    I regularly receive a 'word' document on which I run a 'FindChangeByList' which cleans up and formats the text with a number of GREP/text searches.
    One of the search lines converts a particluar string of text to a paragraph style "Callout_3" (the most common occurence of Callouts).
    This style applies a paragraph rule, above and below the line, to create a coloured block/band out of which said text is reveresed.
    The problem that I have is that the style (because of the paragraph rules), only works correctly if the paragraph has x3 lines of text.
    I have styles set up for every other eventuality - Callout_1 (for single line of text), Callout_2 (for x2 lines of text) etc.
    What I'm looking for is a script that can count the number of lines in the paragraph (once the "Callout_3" style has been applied) and then change the style accordingly to the number of lines in each paragraph/Callout.
    Any further thoughts?
    Steve

    Hi Steve!
    Well, I said it was untested ... Found two major errors. First one is also visible when you manually search for the style "Callout_3". Rather than marking each and every paragraph on its own, InDesign gathers as much as possible. Hence, just testing paragraph[0] would miss out all other paragraphs. Explicitly looping over all paragraphs per "found item" does work.
    The other one is sort of a "syntax" error. Merely testing "lines == 2" does not work -- but it doesn't give an error either! Apparently, it's okay to compare an object ("lines") to a number, even though it doesn't work. The property to check is "lines.length" -- that returns the number of lines for a paragraph.
    Putting it all together results in this script.
    'And now I shall test it,' said Wen. This time he twisted it gently to and fro. 'That si-si-si That simple-ple, eh eheh simple, eh?'
    ... And I tested it.
    app.findTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = "Callout_3";
    foundItems = app.activeDocument.findText();
    for (var i=foundItems.length-1; i>=0; i--)
    for (var j=0; j<foundItems[i].paragraphs.length; j++)
      if (foundItems[i].paragraphs[j].lines.length == 2)
       foundItems[i].paragraphs[j].appliedParagraphStyle = "Callout_2";
      if (foundItems[i].paragraphs[j].lines.length == 1)
       foundItems[i].paragraphs[j].appliedParagraphStyle = "Callout_1";

  • Setting JTextPane to single line?

    Hi all,
    just wondering, is there anyway of setting the JTextPane to only allow the user to enter a single line of text. I want to allow the user to enter text and images, so I need the JTextPane. But I don't want to allow them to enter more than one line.
    Is there any way of doing this? Will I have to create an editor kit, or Document, or add a key listener to listen for "Enter" key being pressed?
    thanks,
    Justin

    i don't know, but u cud use KeyBindings, u can use that and do a binding for every key that is pressed (like, u want enter, so there is a keybinding 4 enter, if u want left, right, etc, then u do a different one. keyListeners r 4 when u need to get like more than 10 specific keys, and it gets confusing....hope i made sense)

Maybe you are looking for