Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3349734
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:42:03+00:00 2026-05-18T01:42:03+00:00

To be more clear, I am trying to modify the Form autogenerated by Sharepoint

  • 0

To be more clear, I am trying to modify the Form autogenerated by Sharepoint which you can see in Sharepoint Designer under Workflows -> Your Workflow -> Forms

alt text

By default you are given two buttons which is start and cancel which is self explainable, Start starts the workflow and Cancel does nothing.

alt text

Once I click on either of the buttons processing happens on the background but nothing interactive happens on the UI (I am expecting for it to go back on the sharepoint list and have a refreshed data or at least close the form). How do I make it close the form? The code behind for the buttons is

<td nowrap="nowrap" class="ms-vb">
    <input type="button" value="Start" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent(concat('__insert;__commit;__redirectsource;__redirectToList={',ddwrt:EcmaScriptEncode($ListName),'};'))}" />
</td>
<td nowrap="nowrap" class="ms-vb" width="99%">
    <input type="button" value="Cancel" name="btnCancel" onclick="javascript: {ddwrt:GenFireServerEvent(concat('__cancel;__redirectsource;__redirectToList={',ddwrt:EcmaScriptEncode($ListName),'};'))}" />
</td>

Even theres a redirecttolist parameter on the built in javascript I does not redirect. Any known workaround for this one? Or anything I am doing wrong?

Edit – the first issue is now solved

But I still have a slight problem as I dont know how to dynamically (not hard coded) pass TemplateID and ListID. With ItemID I use {ItemId} that works fine. To further illustrate what I mean see the screenshot and the comments below.

alt text

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:42:04+00:00Added an answer on May 18, 2026 at 1:42 am

    Have you tried passing your workflow form ASPX page the Source URL parameter?

    Ex: .../MyWorflowPage.aspx?Source=http://sharepointserver/site/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to send some data form my previous ViewController. To be more clear trying
I am trying to make my code more clear using the include function of
Which one is preferable or more clear? public int FrozenRegionWidth { get; set; }
Short question: How can I modify individual items in a List ? (or more
I'm trying to do more OOP in Javascript. One thing i can't figure out
I'm just trying to make my understanding of Exception mechanism more clear. If something
Edited to make the question more clear. I am trying to work with Isolates
If the title is confusing, hopefully this makes it more clear what I'm trying
i've been trying to modify the program so that it could accept more than
To make this more clear, I'm going to put code samples: $file = fopen('filename.ext',

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.