1

I'm a newbie to Sharepoint online. I have done Migration project from Sharepoint 2007 to Sharepoint online (O365). Now comes the enhancements to the new site in sharepoint online. I'm searching without proper flow.

I hereby post the requirements as follows. Please guide me in this regard:

  1. I have forms based on content type

  2. I have a list named "sample_1", where there are many rows with "XXXX_details". If i click "multiple lines of text" field, it shows that rows data in the form view.

Till this ok. Now i need to create a button on the same page where when i click button, onClickListener, i need to create a task which should populate some of the fields in a row to the (1) form which i said in the First point.

Do this need sharepoint Designer or Visual Studio

If you unable to get what the question is, please comment and i clarify it.

  1. Please clear the air "what are the requirements and steps" to create sharepoint online apps.

Any related answers or comments are highly appreciated.

1 Answer 1

0

I hope I undestand correctly. You have a SharePoint list form and on that form you want a button that creates a task in another list? If so, this is what I would do using javascript.

  1. Add the button and javascript to the form through a content editor webpart. Either directly or through a linked html file.
  2. In the onclick event of that button make either a rest call or a csom/jsom call to create the task list item.

Using something like jQuery or SPServices will probably help out on creating the list item.

12
  • Is the sharepoint designer is enough or do i need visual studio?
    – CdVr
    Commented Jan 26, 2016 at 19:38
  • A text editor is enough, so SharePoint designer would do fine.
    – Oak3
    Commented Jan 27, 2016 at 8:21
  • No, the scenario is I already having a List with data and Views. The thing is, i need to take some values in row with row ID or what so ever. I need to create another Task (i.e) new Row. For that i need to create a button in the each row view and by clicking that it should take me to the respective content type (form). There by the populated fields should not be able to edit. Rest of the content Type (form) fields should be able to enter values and create a new Task. R u getting me now?
    – CdVr
    Commented Jan 27, 2016 at 15:22
  • Have a look at jsLink (code.msdn.microsoft.com/office/…). This would give you the ability to add a button on each row in a view. if that button is there, it shouldn't be to hard to get the values of the row en build your own logic.
    – Oak3
    Commented Jan 28, 2016 at 13:41
  • 1
    If you are going to take a look at CSR/JSlink then check out the Chrome Browser Cisar Extension Commented Jan 30, 2016 at 19:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.