Can I set the value of field for a custom list based on which custom form a user chooses?

New developer. Be gentle, please.

Constraints: I am using SharePoint Designer and SharePoint 2010 behind a firewall so I can’t upload pretty much anything without going to my helpdesk and getting a tech person to do it for me.

Situation: We track “Activities”. There are many points of origin for an Activity request. Different clients give us different information and are going to need custom forms (custom new item forms created through SPD). However, all these forms will create new items for the same custom list, “Activity Management”, and I have workflows already in place to create a new Activity Number each time one is created based on a batch of other stuff that is probably not super relevant. All these workflows were designed for only 1 custom form, though.

I need to create a second form and have it not trigger some of my workflows at this time. My idea is to have my new custom New form auto-fill/pre-populate on load/etc a field that identifies which form it is. Then I just have to make a condition at the top of my workflow to not activate for that form. Then we can do it later by changing that field to a value of my choice, now triggering the desired workflow.

I just can’t figure out how to simply set the value of a field within the html of the form – not hiding anything, not making the field a cascading anything, nothing fancy. I have a default inside the SharePoint List Settings that is “No Form” for when I do things manually. Once I figure this out for this form, I’ll imitate it for each custom Change or Activity request. And we can have as many entry points as my bosses need…

Potential Paths to a Solution: Can I do this within table row itself?

               <tr>                     <td width="190px" valign="top" class="ms-formlabel">                         <H3 class="ms-standardheader">                             <nobr>Form Used</nobr>                         </H3>                     </td>                     <td width="400px" valign="top" class="ms-formbody">                         <SharePoint:FormField runat="server" id="ff95{$  Pos}" ControlMode="New" FieldName="Form_x0020_Used"  __designer:bind="{ddwrt:DataBind('i',concat('ff95',$  Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Form_x0020_Used')}"/>                         <SharePoint:FieldDescription runat="server" id="ff95description{$  Pos}" FieldName="Form_x0020_Used" ControlMode="New"/>                     </td>                 </tr> 

Or, maybe there is a really nifty javascript thing that could be used…

<script type="text/javascript" language="javascript">     function setff95() {         Something     } </script> 

SharePoint workflow tasks list migration to SharePoint online

In our SharePoint 2013 on-premise environment, we have Approval workflows. Using SSRS reports, we display a report, who approved those tasks in a Grid view.

Now we are migrating our complete on-premise environment to SharePoint online, and two things i understood.

1) SharePoint online doesnt have SSRS reports. 2) When migrating content, Workflow history list, being a hidden list, will not be migrated.

I am hoping if there is any way at least to migrate the complete approval task list to SharePoint online list, we can use it a source to build reports from another system list power bi or tableau or is there any better solution?

This is only for existing data for reference purpose, no new records will be added to the workflow task list.

SharePoint workflow tasks list migration to SharePoint online

In our SharePoint 2013 on-premise environment, we have Approval workflows. Using SSRS reports, we display a report, who approved those tasks in a Grid view.

Now we are migrating our complete on-premise environment to SharePoint online, and two things i understood.

1) SharePoint online doesnt have SSRS reports. 2) When migrating content, Workflow history list, being a hidden list, will not be migrated.

I am hoping if there is any way at least to migrate the complete approval task list to SharePoint online list, we can use it a source to build reports from another system list power bi or tableau or is there any better solution?

This is only for existing data for reference purpose, no new records will be added to the workflow task list.

update multiple list items using Sharepoint Plus and ids

I’m using Sharepoint Plus and want to update multiple list items based on ids.

I have one input text to update only title field and an array of IDs from selected my list items as a function, (to simplify , i have made the list of the ids as the following):

... <input id="Title" name="Title" type="text"> <script> var fileds = {};  $  ('form').on('submit', function(e) {    e.preventDefault();    fileds['Title']= $  ("#Title").val();    $  SP().list("MyName").update({Title: [fileds] },{      where:"ID in (34, 45, 55, 33)"   });  });     </script> 

if i’m using only one id –> where:”ID = 34″ then it is working but i want to update multiple records with the same value from text filed. is there and possibility to do that ? any idea ?

Displaying list items via SP.ClientContext

I am currently using SP.ClientContext via JavaScript to display items from a SharePoint list. I am able to display the items via an alert or via input button onClick to display the data. However, I want it to display onLoad.

I am currently using an iframe tag to do so but it runs very slow. When I run the Dev Tool in Chrome it states “Page cannot be found” (I suspect it’s trying to locate the source and I’m not referencing the source correctly…currently using src=”DispForm.aspx” but I’m sure that’s incorrect).

Is there another way of displaying the items onLoad via JavaScript or finding the correct src reference for the iframe tag? Below is the code I am using:

    <!--iframe is slow...maybe because it's looking for DispForm.aspx?-->     <iframe style="display:none" onload="runCode()" src="/DispForm.aspx"></iframe>     <span id="Sig"></span>     <script type="text/javascript">          var itemId = GetUrlKeyValue("ID");           var targetListItem;         ExecuteOrDelayUntilScriptLoaded(Initialize, "sp.js");                       function runCode() {          var clientContext = new SP.ClientContext();           var targetList = clientContext.get_web().get_lists().getByTitle(myList');          targetListItem = targetList.getItemById(itemId);          clientContext.load(targetListItem, 'ws_x002d_sig');          clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));        }         function onQuerySucceeded() {             if (targetListItem.get_item("ws_x002d_sig")==="" || targetListItem.get_item("ws_x002d_sig")==null) {                 var prefVar= "<a href='#ws'>Sign</a>";             }             else {                 var prefVar=targetListItem.get_item('ws_x002d_sig');             }              var myObject = {                 prefObject: function() {                     return prefVar;                 }             }              x = myObject.prefObject();             document.getElementById("Sig").innerHTML = x;             //"alert works great" alert('Request succeeded. \n\nRetrieved Item is: ' + targetListItem.get_item('ws_x002d_sig'));         }         function onQueryFailed(sender, args) {          alert('Request failed. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace());        }                      </script>      <!--input button works great -->     <!--<input id="Button1" type="button" value="Run Code" onclick="runCodeWs()" />--> 

ECMA script for checking active workflows for an list item

Hi i am having more than 1 workflow associated with the list if there is any workflow that is active for an item then i need to prevent starting another workflow for the same item. I am using the following code to achieve the same. Can anyone please provide me the ECMA client script object model equivalent for achieving the same.

//Check for any active workflows for the document     private void CheckForActiveWorkflows()     {         // Parameters 'List' and 'ID' will be null for site workflows.         if (!String.IsNullOrEmpty(Request.Params["List"]) && !String.IsNullOrEmpty(Request.Params["ID"]))         {             this.workflowList = this.Web.Lists[new Guid(Request.Params["List"])];             this.workflowListItem = this.workflowList.GetItemById(Convert.ToInt32(Request.Params["ID"]));          }         SPWorkflowManager manager = this.Site.WorkflowManager;         SPWorkflowCollection workflowCollection = manager.GetItemActiveWorkflows(this.workflowListItem);         if (workflowCollection.Count > 0)             SPUtility.TransferToErrorPage("An workflow is already running for the document. Kindly complete it before starting a new workflow");     } 

Get List Items from Sharepoint Online to on Premises

I’m trying to get some list elements, using javascript code, from a Sharepoint online instance to the internal, on premises, Sharepoint instance. I’ve been looking for the past days at Sharepoint’s REST API, as well as to JSOM, without success. Could you, please, give me a hint on where should I look?

I know there’s already a similar question, here, but I’d just like to hear another answer. Also, if it’s impossible with Javascript, could you tell me what should I try? I’d like to stay away from the 3rd party tools, for now.

Thanks

Get List Items from Sharepoint Online to on Premises

I’m trying to get some list elements, using javascript code, from a Sharepoint online instance to the internal, on premises, Sharepoint instance. I’ve been looking for the past days at Sharepoint’s REST API, as well as to JSOM, without success. Could you, please, give me a hint on where should I look?

I know there’s already a similar question, here, but I’d just like to hear another answer. Also, if it’s impossible with Javascript, could you tell me what should I try? I’d like to stay away from the 3rd party tools, for now.

Thanks

Get List Items from Sharepoint Online to on Premises

I’m trying to get some list elements, using javascript code, from a Sharepoint online instance to the internal, on premises, Sharepoint instance. I’ve been looking for the past days at Sharepoint’s REST API, as well as to JSOM, without success. Could you, please, give me a hint on where should I look?

I know there’s already a similar question, here, but I’d just like to hear another answer. Also, if it’s impossible with Javascript, could you tell me what should I try? I’d like to stay away from the 3rd party tools, for now.

Thanks