New answers tagged

1

Are you using the "New Experience" Document Library UI? If so, then it won't accept any branding, or custom script. Microsoft has disabled everything. The current answer from Microsoft is: Switch back to Classic Mode https://support.office.com/en-us/article/Differences-between-the-new-document-library-experience-and-classic-mode-30e1aab0-a5cc-4363-b7f2-...


0

You can hook into the SharePoint PreSaveAction http://sharepoint.stackexchange.com/search?tab=votes&q=presaveaction


0

For others looking for a solution I thought I would post my outcome. I have a form with toggle fields and I needed the validation to align with the choice field. I am not able to use InfoPath as it is not compatible with all our users. The below validation is a result of creating a toggle form using JS and then the conditional validation statement in the SP ...


0

Option 1: I am not sure I fully understand the scenario. It almost sounds like you need to build a content type for each department. The content type for each could have a unique choice field with appropriate choices. Option 2: $().SPServices.SPCascadeDropdowns Option 3: https://sputility.codeplex.com/ Hide/Show field on list form based on value ...


1

SharePoint tries to execute a user-defined function called PreSaveAction before an item is saved. You can use that function to validate your data. Here is a bit of code that should give you a good starting point: function PreSaveAction(){ if(jQuery("select[title=A]").val() == "xyz"){ if(jQuery("div[title=B] > div > .valid-text").length){ ...


0

UPDATE: I ended up changing the column type to a drop down instead of radio buttons. That said, I did recently have another project which required me to capture the value of a radio button. In looking at the code in Chrome developer tools, it appears as though SharePoint doesn't give a title to radio button fields as it does with other field types, but ...


0

You are trying to declare 4 Formulas in 1 A Formula starts with one = and one = only Also note that: =IF([Red_Variety]<>"",TRUE,FALSE) is exactly the same as: =NOT(ISBLANK([Red_Variety]))


0

This can be accomplished by using the single line of text type and using the following validation: =(LEN([Start Time])=5) +(MID([Start Time],3,1)=":") +(CODE(MID([Start Time],1,1))>47) +(CODE(MID([Start Time],1,1))<51) +(CODE(MID([Start Time],2,1))>47) +(CODE(MID([Start Time],2,1))<58) +(CODE(MID([Start Time],4,1))>47) +(CODE(MID([Start Time],...


0

I have done something similar to this and used the PreSaveAction function as well. This should be a catch-all on a custom new form for all fields. This doesn't contain the conditional logic, but should lay some groundwork on how to select. The way I was flagging each field was by using the class requiredField on the <tr>, which is done by placing ...



Top 50 recent answers are included