Django sign-up form scroll default - django

Hi in Django I have created a sign-up page, but the problem is if the page is loaded the page automatically scrolls to the e-mail field of the form instead of the top of the page.
How can I stop this?

Related

Oracle-Apex: Dynamically redirecting from login button

The scenario
I have implemented social authentication similarly to described by Dimitri Gielisin hist post "Facebook, Google and Custom Authentication in the same Oracle APEX 18.1 app" (http://dgielis.blogspot.com/2018/06/facebook-google-and-custom.html)
The pertinent point is that there is a button which has the request 'APEX_AUTHENICATION=FACEBOOK' which logs the user in and also hard codes the page that the user is taken to.
It works great. (However if I have a login menu item which directs back to the same page - the user name isn't updated on the page.)
The Issue
Default behaviour is for apex to redirect users to the login page when they attempt to access a page which is not publicly available.  After logging in the user is taken to the page hard coded page in the button (except for modal dialogues which just produce an invalid session error). 
I'd love it if they could sign in and then continue to the page they need to go to. Is there some not extremely cumbersome ways of doing that? I thought of trying to saving the page number I want the user to go to into an application item and then having the button redirecting based on the application item- but while I was saving the page number the dynamic redirect in the button is not working...and I feel like I'm fighting the apex framework...
Is there a better way? If not can a button reference an item for the page number? I was trying &APP_ITEM. but that didn't seem to work...
(I"m using Apex 20.1)

Django ERR_CACHE_MISS on login page after clicking a link and back

I have a login page with a form with username and password fields and a submit button. In the same page there are links to other pages on the site.
I'm using the vanilla Django login view. The user can login using the correct credentials, otherwise the login form shows authentication error as expected. Everything works fine so far. The issue I'm having is reproducible this way:
go to login page and input wrong credentials, submit
correctly validation errors appear on the form
click some link on the page
correctly the browser brings me on the other page following the GET request
click on browser go back button
Or, another way:
go to login page and input wrong credentials, submit
correctly validation errors appear on the form
click on browser go back button
click on browser go forward button
At this point I get this message from the browser:
Confirm Form Resubmission
This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed.
Press the reload button to resubmit the data needed to load the page.
ERR_CACHE_MISS
It's weird, but even more weird is that if I check on Disable cache in Chrome DevTools Network panel, the problem disappears (ie. when I click back, I see the form precompiled with previously inserted data). So I tried to add the never_cache decorator to LoginView just to see, but then realized this view (obviously) already has the decorator applied.
I wonder what the problem is and how to solve it.

Page reload after form submit using WFFM Sitecore8

I have created one form using WFFM, and a sending mail on tap of submit button,
After click on submit button it display message "Thank you for filling in the form" and textbox is hidden after submission the form. and when I refresh website it ask me to repeat action.
How can I hide the form after submission?
Changing the Success Mode field to Redirect would certainly be a good workaround to your problem. A dedicated thank you page has the added benefit of being easier to goal track with 3rd party analytics tools like Google Analytics.

Sitecore 6.4: User Profile Start URL and Workbox

I have a requirement to present the user the Workbox when logging into the sitecore administration interface. I've identified that this can be done by setting the user profile Start URL to /sitecore/shell/applications/workbox.aspx.
This works - when the user logs in they get the workbox, but the Logoff link is missing from the top menu (which is there when you access the workbox via the Content Editor - but I notice not if you access it via the Menu item).
Is there any way of getting this Logoff button back, or adding a custom one?
I've checked it in Sitecore 6.6 and there is no logout button in workbox by default as well.
The fix for this is very easy. Login to the Sitecore desktop, switch to the 'core' database, open the Content Editor and navigate to the node:
/sitecore/content/Applications/Workbox/Ribbon/Home/Write/Logoff
There is a field 'Click' with value 'workbox:logout'. Just change the value to 'system:logout' and the logout button will be there.

Sitecore webform for marketer posting submit action to layout instead of an item

We have setup a webform using webform for marketer module in sitecore.
Using this module, we are creating web forms where users can fill details and submit the form. On submit, we can do actions such as storing in database, send email etc.
Now we were able to creat such form using webform for marketer module in sitecore. Now the problem is when user fill the form and hit submit button, instead of posting this action to the page, request is getting redirected to layout in sitecore. This is a same layout we are using to resolve the page on backend.
I have found solution on this link.
http://sdn.sitecore.net/SDN5/Forum/ShowPost.aspx?postid=37264
For some reason App_Browser folder was missing from site. Once i put that folder in. It started working.
Also, i was reading on sitecore sdn site that, in 6.4.1 version, they are removing need for App_Browser