add "back" button to a form in ploneformgen - plone

I have a multipage form in Plone using ploneformgen. I would like the user to be able to navigate back with a back button. Can someone please point how can I add a back button to my form?

I don't think there's a trivial way to do this in PFG, but you could use http://plone.org/products/collective.z3cform.wizard. Warning: this is not point-and-click configuration.

Related

user input link will go back to login once the user logged in it will go to the link earlier input instead of dashboard

Sorry to ask but I don't what is the exact call on this.
I have a scenario for example I paste this link localhost/Dashboard/Treatment the user will go back to the login page once the user logged it will go to this localhost/Dashboard/Treatment instead of Main Page using asp.net.
I need is only the exactly the call on this process so that I will do the research.
Sorry beginner :)
If you are using login control, you can use DestinationPageUrl property in your code.
If you just use things like text boxes and button controls, then in your Button_Click event, you can just use Response.Redirect("DestinationHere").
If you don't want change anything in your page, you can add return RedirectToAction({actionName}, {controllerName}); in your login method.

How to view the address of the POST request made when an HTML button is clicked?

I am creating a project involving web scraping and web automation. I would like to first submit this form (http://rgsntl.rgs.cuhk.edu.hk/rws_prd_applx2/Public/tt_dsp_timetable.aspx) then once you submit this form, I want to scrape the HTML page that comes up. The problem is I am not sure how to submit this form through a Go program.
I was previously experimenting with Selenium to emulate a web browser but now I think there may be an easier way. I think that I should be able to make a POST request to the same address that the "submit" button of this form makes to and directly use the HTML page that is returned. The problem is that I cannot figure out how to get the address that the submit button makes a POST request to. I would like to ask if there is a way to monitor the address that the button makes a POST request to when it is clicked? Also if you see any flaws with my idea please do let me know. Thank you.
Right click mouse and select inspect option. After that select the Network tab.
When you fill all the entries and click submit button many urls flashes. Select the top url and under the headers tab you will see the request url for POST method.
See the image

Using Mooncake Template

Here is the Mooncake template link: Mooncake template. Has anyone ever used it? I'm trying to apply this template to my ASP.NET website, using ASP.NET controls, but I have some problems about this.
First, in the Forget password menu, when a user clicks the Reset button, it will post back to the server and do some validations. If it doesn't pass the validations, the form will be displayed again with error messages. The problem is when the page reloads, it changes back to the default view, which is Login menu, so I have to change to Forget password menu to see the error messages. How can I make it display Forget password menu directly?
The second thing is how can I apply table format to my grid view? The column of a table in this template can be sorted without posting back by clicking on the header.
Any of your help will be highly appreciated. Thanks in advance :)

using easyslider with asp.net to create a registration wizard

I am trying to make a registration wizard that contains about 6 steps.
I have moved away from using the standard asp.net registration wizard as I want more control over the look and feel.
I am using the easyslider plugin as I want a back and forward button that allows the users to click through the steps and be able to go back and forwards.
So everything was going well until a added an asp.net button into the plug. When I click it the page postback isnt happening, Does the plugin stop the ability to use asp.net controls inside? Is there something else I need to do to enable the click event to fire when using this plugin?
Any advise would be great!
Thank you
Make sure your button is registered properly (eg : with a runat="server") in the aspx file.
Did you try to move that button outside of your wizard ? I never used easyslider but I guess, like most sliders, it "just" hides or shows partial part of the page so I see nothing that could prevent a post back from happening.

Drupal: my back-end edit node page jumps up when I click "save"

Using Drupal: When I click on button "Save" to save the changes to a page, the top of the back-end is immediately removed, and all the content is shifted up for some reason..
How can I fix this?
This sounds like some JavaScript code going haywire, attaching a handler to the form submit while it shouldn't. You should try to use the form with JavaScript disabled in the browser - if the behavior does not occur then, you need to check which JavaScript code is responsible for it. (Possibly some sloppy code from a contributed module - you can also turn off all contributed modules to see if this changes the behavior - if it does, turn them back on one by one to find the offender.)

Resources