• Giritharakannan Devaraj
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
I have a visualforce page with an html form.  The form is a post method, has 2 hidden inputs and is targeted to an apex:iframe.  I can't figure out how to get the form to auto-post to eliminate an extra click (submit button) for my users.  The <body onload> does not appear to be working. I'm probably doing it all wrong.  Thanks in advance for your thoughts/input.

<apex:page controller="myController" tabStyle="Contact" showHeader="true" sidebar="true" >
    <html >
        <body onload="document.myForm.submit()" >
            <form action="{!sessionLink}"  method="post" id="myForm" name="myForm" target="myFrame" >
                <input type="hidden" name="X-BEARER-TOKEN" value="{!bearerToken}" />
                <input type="hidden" name="X-REFRESH-TOKEN" value="{!refreshToken}" />
                <center ><input type="submit" name="submit" value="initiate {!vendor} session" /></center>
            </form>
        </body>
    </html>
Hi Guys,

I get an error message when trying to solve Restrict Login Hours and IP Ranges Challenge from Protect Your Data in Salesforce badge:
"We couldn’t find the correct login hours. Review the login hours in the step."
I set the Login Hours as in challenge - Mo-Fr 8am - 6pm and Sa-Su 12am - 12 am. Time zone which is shown in Login Hours is GMT+2 (Berlin). I guess that this times should be in PDT (GMT -7). When I change Company Time Zone to PDT, in Login Hours it is still GMT+2. I read, that once it is set, it won't chang. That means, Considering GMT-7, login hours should be 11pm - 8am. But than I get an error that Start cannot by later then End. Any idea how to set this?

Thanks!