Creating a call to action to open key dates

Was this article helpful?

Use this snippet to create a call to action on your task that opens up the key dates blade for you piece of work.

ctx.sharedoId should be set to the id of the piece of work you want to open.

   var action1b = actions.sharedo.BuildActionPlanItem() 

            .WithDescription("Confirm limitation date is correct") 

            .WithOrder(10)

            .AddCheckbox() 

            .MarkRequired()

            .WithCallToAction 

             ( 

                  actions.sharedo.BuildCallToAction() 

                  .WithDisplay("Key facts", "fa-check", "btn-success") 

                  .WithCommandForSharedo 

                ( 

                    "edit-key-dates",

                    ctx.sharedoId 

                ) 

                .Build() 

            ) 

.Build();

Was this article helpful?

Related Articles

Related articles in the knowledge base