This topic contains 8 replies, has 2 voices, and was last updated by Patrick Haley ☁️ 5 years, 10 months ago.

  • Author
    Posts
  • #3054

    KGosnell

    Greetings,

    I have an embedded online form working that does not use an iFrame.

    My challenge now is to use the same methodology to populate a Custom Record from an embedded online form.

    NetSuite throws a “invalid record type” when I try to use the same code (in essence) to create a new custom record.

    Any insight is much appreciated.

    There must be a way to populate a custom record using an embedded online form without the dreaded iFrame.

    Thanks

    Simple embedded code that creates a lead record in NetSuite without an iFrame.

    ================================================== ==============================================

    -//W3C//DTD HTML 4.01 Transitional//EN">

    Lead Form Template

    Online Lead Form

    ================================================== ================================================== ========

    Trying to create a custom record using the same methodology.

    Only difference is the action and the label names..

    -//W3C//DTD HTML 4.01 Transitional//EN">

    Custom Record

    Custom Record Form


    This is a cached copy. Click here to see the original post.

  • #3055

    ERPExperts

    Hi there.

    Feel free to view source on our site http://www.erpexperts.co.uk/contact-us/

    That’s how we’ve done what you’re trying to do.

    Thanks

    Pete.

    • #26093

      Patrick Haley ☁️
      Member
      @patrick_haley

      Hey Pete,

      Would you mind sharing the HTML and contact.php file for this?

      I really like how you were able to get the validation and ReCaptcha working.

      Patrick

  • #3056

    KGosnell

    Hi Pete,

    Can you help me with viewing your source code ?

    Many thanks,

    Kyle

  • #3057

    ERPExperts

    Here you go. Notice that the Ampersands in the URL are HTML Encoded (Replace & with & )

    Code:



  • #3058

    KGosnell

    Hi Pete,

    Very much appreciated.

    I see this form code is for a Lead Record.

    I have this working but looking to do the same with a Custom Record.

    Have you been able to use this same methodology to submit and populate a custom record ?

    Thanks,

    Kyle

  • #3059

    ERPExperts

    Hi Kyle

    Yes, simply create an Online Form for the Custom Record, and replicate the fields you want filling in.

    Change the Form’s Action to the Custom Record’s Online Form External URL and make sure all the fields in your HTML page have the same ID’s as those in the Custom Record Type.

    Thanks

    Pete.

  • #3060

    KGosnell

    Hi Pete,

    Thanks again for your responses. Much appreciated.

    I attempted just as you suggested and my code is above.

    When I do this with a custom record I get a “invalid record type” error.

    Have you done this successfully ? Could I see a sample of the code for a custom record ?

    Many thanks,

    Kyle

  • #3061

    ERPExperts

    Hi Kyle

    If you send me the External URL of your Custom Record Online Form, I’ll show you what you need to do.

    Thanks

    Pete

You must be logged in to reply to this topic.