+ Start a Discussion
san5augsan5aug 

Validation fires while page load when opening a page through URL hacking

Hi,

I am oening a standard page for a object with URL hacking. This object has few required field. My problem is,  these validation fires on page load.

Here is the Url hacking code.
function createDbsProjectRedirect(id){
            window.location = '/a0P/e?RecordType=01280000000UDW1&CF00N80000003DXtA={!saurlname}&CF00N80000003DXtA_lkid={!MIR.mainSA.id}&retURL=/apex/MIRHomePage?id={!MIR.record.Id}&saveURL=/apex/MIRAction?mir={!MIR.record.Id}%26t=dbsp%26id='+id+'';
        }

Here is the screen shot.
Error on page load

Please help.
PratikPratik (Salesforce Developers) 
Hi,

The error on the page is causing because the field is required.

Can you please elaborate on url hack you did?

Thanks,
Pratik