locked
add to card workflow in sharepoint designer 2013 RRS feed

  • Question

  • hi I want to write a system for book store that users can serarch their book and when find the book add this to card and can go and see their card and cancel their choices and i donot know to use what workflow for this is it possible to do this with sharepoint designer and infopath forms or it need to be done programically
    • Edited by maria1368 Wednesday, August 24, 2016 6:46 AM
    Wednesday, August 24, 2016 6:46 AM

Answers

  • in list itself you can add a calculated column ,and that calculated column will work as "Addto Card" button

    =CONCATENATE("<input type='button' name='btnAddToCard' id='btnAddToCard' value='Add to Card' onclick=''/>")

    and on click of button you can start workflow or call JavaScript method which will add this item to cardlist


    Vikash


    • Edited by VikashKummar Wednesday, August 24, 2016 8:05 AM
    • Proposed as answer by Victoria Xia Thursday, September 8, 2016 11:48 AM
    • Marked as answer by Victoria Xia Friday, September 9, 2016 10:43 AM
    Wednesday, August 24, 2016 8:04 AM

All replies

  • Hi Maria,

    You can achieve this by multiple approach, below are some approach.

    Approach#1: using JSOM

      a. create a list called "CardList"

      b. on click of add to card write JSOM to aad that item details on "CardList"

     c. on Click of remove just delete the item from the "CardList" 

    Approach#2: using SPD workflow

      a. create a list called "CardList"

      b. on click of add to card start a workflow which will add that item details into"CardList"

     c. on Click of remove just delete the item from the "CardList" 

    Hope this will help you


    Vikash

    • Proposed as answer by RenukaRN Wednesday, August 24, 2016 7:01 AM
    Wednesday, August 24, 2016 6:57 AM
  • thank you but how can i do this with sharepoint designer i should put an addto card button in front of every item 
    Wednesday, August 24, 2016 7:31 AM
  • is there any sites to write the jsom in which i need to use
    Wednesday, August 24, 2016 7:31 AM
  • in list itself you can add a calculated column ,and that calculated column will work as "Addto Card" button

    =CONCATENATE("<input type='button' name='btnAddToCard' id='btnAddToCard' value='Add to Card' onclick=''/>")

    and on click of button you can start workflow or call JavaScript method which will add this item to cardlist


    Vikash


    • Edited by VikashKummar Wednesday, August 24, 2016 8:05 AM
    • Proposed as answer by Victoria Xia Thursday, September 8, 2016 11:48 AM
    • Marked as answer by Victoria Xia Friday, September 9, 2016 10:43 AM
    Wednesday, August 24, 2016 8:04 AM