Advertisement
matthewpoer

SugarCRM: Bypass Validation/Required Field Check for Import

Aug 15th, 2012
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Having trouble with a SugarCRM Import due to required fields?
  2. // it's always a good idea to do validation and required-field checks, except
  3. // maybe when you're having trouble with a required field you want to just skip.
  4. //
  5. // Just throw this into your Firefox/Firebug Console or whatever JavaScript Console
  6. // that you prefer and click your "Next" button to proceed to the next screen.
  7.    
  8. function just_go(){
  9.     document.getElementById("importstep3").action.value = "dupcheck";
  10.     return true;
  11. }
  12. document.getElementById('gonext').setAttribute('onclick','just_go()');
  13.  
  14. // Please don't hold me responsible if you use this and import a bunch of junk and wreck
  15. // your system and your boss gets mad at you and you lose your job and your significant
  16. // other leaves you and your children are crying and your parents are disappointed and your
  17. // preferred Deity feels that you should be punished for an unfathomable amount of time. Just
  18. // use it responsibly to save yourself some time and don't be silly.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement