Tag Info

New answers tagged

0

Your Regular Expression will only work for 1 digit. To accept 1 or more digits, change it to ^[0-9]+$. To accept 0 or more digits, change it to ^[0-9]*$


0

Hi actualy your validation express is correct same working for me but it was allowing spaces so i tried bellow mentioned validation express. try this and let me know whether it was helpfull or not. \d+ If you want more details about the validation regular expression you can visit bellow mentioned link Regular expression for validation controls


1

To shorten formulas, you need to create calculated columns that represent parts of the formula. After that, you create a formula based on calculated fields. I hope you find it useful.


0

Try: =[Requested Posting Date]>=[Date of Request] If I'm reading this right, you don't want to allow the Requested Posting Date to fall before the Date of Request. The validation fails only if the formula evaluates to FALSE. With your formula: =[Requested Posting Date]<=[Date of Request] a Requested Posting Date that falls before the Date of Request ...


0

This is not validation, but you can use input mask by adding jquery on newform of list Below is the script: <script language="javascript" src="http://code.jquery.com/jquery-1.4.2.min.js" type="text/javascript" ></script> <script language="javascript" src="http://jquery-joshbush.googlecode.com/files/jquery.maskedinput-1.2.2.min.js" ...


1

For Relative Path in sharepoint you can use any of the two: var url = window.location.protocol + "//" + window.location.host + _spPageContextInfo.siteServerRelativeUrl; Or we can use var context = new SP.ClientContext(); var relativeWebUrl = context.get_url(); var fullWebUrl = window.location.protocol + '//' + window.location.host + relativeWebUrl ;


0

You've defined an error condition, and your test satisfies that condition With the formula: =IF([Request Type]="Review",(IF(ISBLANK([Request Date]),FALSE,TRUE)),TRUE) you are telling SharePoint that an item with a Request Type of "Review" and a blank Request Date should fail the validation and return an error message. In the list's Validation Settings ...


0

When a field is set to required, then Required Field text is added to the title of the field. So, do something like this: function PreSaveAction(){ if($('input[title="FieldName Required Field"]').val() == ''){ alert('Please enter some value'); return false; }else{ return true; } }


2

The most common reason (when there is no error in the formula) is that sites with different regional settings uses different characters as a delimiter. For European countries, commas works (,) work while English uses semicolon (;). So try to change all the semicolons (,) to commas (;) for it to work in your English page and vice versa. Use find and ...


0

It should work if you add "text4" as a single line text column and adapt and save your formula. After that you can change "text4" to a multi line column without touching your validation formula again.



Top 50 recent answers are included