• 0

Need help combining inputs into one output for XML (code included)


Question

BlakeHammerton

I am at the end of my rope here. I've tried everything I know how to do.

 

I have a webform that sends the information to Quickbase (a CRM). Everything works because the name"" in the input fields matches the data fields in the CRM. Except for four things:

• New Address Referring Agent Referring Company Agent Email

• All four of those SHOULD output into "_fid_12" which is Referral Notes field 12.

• So the variables aa through dd have been made, but still nothing transmits.

 

Please tell me what I'm missing. It's put me 5 days behind so far. Code is below (without the server sensitive data).

 

 <div id="desktop-contact-form">
    <div>   
        <form name="qdbform" method="POST" onsubmit="return validateForm(this)" encType="multipart/form-data" action="https://CRM-DOMAIN-APP-ROKEN-URL">
            <input type="hidden" name="fform" value="1">
            <table>
                <tr>
                    <td>First Name<span>*</span></td>
                    <td><input type="text" placeholder="Please enter you first name..." size="40" name="_fid_6" ></td>                      
                </tr>
                <tr>
                    <td>Last Name<span>*</span></td>
                    <td><input type="text" placeholder="Please enter your last name..." size="40" name="_fid_54" ></td>
                </tr>
                <tr>
                    <td>Phone<span>*</span></td>
                    <td><input type="text" placeholder="Please enter your phone..." size="40" name="_fid_25" ></td>
                </tr>
                <tr>
                    <td>Email<span></span></td>
                    <td><input type="text" placeholder="Please enter your email..." size="40" name="_fid_24" ></td>
                </tr>
                <tr>
                    <td>New Address<span></span></td>
                    <td><input type="text" rows="1" placeholder="Enter your new address..." size="50" name="dd" ></td>
                </tr>                                       
                <tr>
                    <td>Move In Date</td>
                    <td><input type="date" size="40" name="_fid_11" ></td>
                </tr>
                <tr>
                    <td>Specific Notes</td>
                    <td><textarea name="_fid_46" rows="2" cols="40"></textarea></td>
                </tr>
                <tr>
                    <td>Referral Agent Name<span></span></td>
                    <td><input type="text" rows="1" placeholder="Enter agent's full name..." size="40" name="aa" ></td>                     
                </tr>
                <tr>
                    <td>Referring Company<span></span></td>
                    <td><input type="text" rows="1" placeholder="Enter referring company name..." size="40" name="bb" ></td>                        
                </tr>
                <tr>
                    <td>Agent Email<span></span></td>
                    <td><input type="text" rows="1" placeholder="Enter agent email..." size="40" name="cc" ></td>                       
                </tr>
            </table>
            <input type="hidden" name="rdr" value="http://myfreeconnection.com/thank-you.html">
            <input type="hidden" name="_fid_12">
            <input type="submit" value="SUBMIT" class="btn">
        </form>     
        <p><strong>For Immediate Assistance, please call 877-528-3824</strong></p>
    </div>
</div>  
<!-- desktop contact form -->

    <!--======= ACCORDING =========-->      
    </div>
    <section class="padding-top-50 padding-bottom-30"></section>
<!-- </section> -->

    <!-- Work Process -->
    <div class="work-process">
      <ul class="row">

<!--======= FOOTER =========-->
<footer>
<div class="container"> 
    </div>
</footer>

<!--======= RIGHTS =========-->
<div class="rights">
<div class="container">
  <p>Copyright </p>
</div>
</div>
<script src="js/jquery-1.11.3.min.js"></script> 
<script src="js/bootstrap.min.js"></script> 
<script src="js/own-menu.js"></script> 
<script src="js/jquery.isotope.min.js"></script> 
<script src="js/jquery.lighter.js"></script> 
<script src="js/jquery.cubeportfolio.min.js"></script> 
<script src="js/owl.carousel.min.js"></script> 
<!-- SLIDER REVOLUTION 4.x SCRIPTS  --> 
<script type="text/javascript" src="rs-plugin/js/jquery.tp.t.min.js">        
</script> 
<script type="text/javascript" src="rs-plugin/js/jquery.tp.min.js">   
</script> 
<script src="js/main.js"></script>

<!-- added for contact form -->
<script lang="javascript">
function CheckForOther (item, origlen)
{
var sitem = item.options[item.selectedIndex];

if (item.selectedIndex == (item.length - 1))
    {
    var val = prompt ("ADD A NEW CHOICE:", "");

    if (val == null)
        item.selectedIndex = ;
    else    
        {
        var slen = item.length;

        if (slen == origlen+1){
            item.options[slen] = new Option (sitem.text, sitem.value);
                    }

        item.options[item.length-2].text = val;
        item.options[item.length-2].value = val;
        item.selectedIndex = item.length-2;
        }
    }
}
</script>
<script lang="javascript">
function validateForm()
{/*
if(theForm._fid_25.value == "")
{
alert('Please enter a value for the "Phone" field.');
theForm._fid_25.focus();
return (false);
}*/
var theForm=document.qdbform;
var a = theForm.aa.value;
var b = theForm.bb.value;
var c = theForm.cc.value;
var d = theForm.dd.value;
var rnote = "Referral Company: "+a+"\nReferral Agent: "+b+"\nAgent      
Email: "+c+"\nNew Address: "+d;
theForm._fid_12.value = rnote;
return true;
}
</script>

That's what I have, and it almost looks like "theForm._fid_12.value = rnote" should be different, but I don't know what else to do.

 

There are no other files on the server designating the process of things. All the code is written here. Please help. I'm desperate for this to start working.

Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
BlakeHammerton

After getting suggestions and different lines of code from other people, it almost feels like something is wrong on my end in Dreamweaver.

 

There are no other files in process here. Everything is inline. Could it be something in DW? I'm stumped.

Link to post
Share on other sites
  • 0
DevTech

I ran your code in a Chrome browser and it works.

 

I had to delete the CheckForOther function so maybe that's a clue

 

Otherwise it's a server issue

 

Also, it's been long time since I played with webby stuff but Multpart encoding doesn't seem right for a simple form...

 

Link to post
Share on other sites
  • 0
BlakeHammerton

Hmm, okay. I'll make the adjustment. I don't know what is causing such a hiccup. I'm going to have to create random fields in the CRM so I eliminate this multipart data and just make each field correspond with only one field in the CRM. Thank you for your input.

Link to post
Share on other sites
  • 0
DevTech

 

47 minutes ago, BlakeHammerton said:

Hmm, okay. I'll make the adjustment. I don't know what is causing such a hiccup. I'm going to have to create random fields in the CRM so I eliminate this multipart data and just make each field correspond with only one field in the CRM. Thank you for your input.

Multipart is normally used for file transfer uploads. Simple form whatver is in it is just a single transmission.

 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By News Staff
      Pay What You Want for this 20-Course Programming Bundle
      by Steven Parker

      Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can Pay What You Want for the The 20-Course Programming Bundle. From game development to making responsive apps, this 20-course collection has everything you need to start coding.



      What's the deal?
      With the Pay What You Want bundles, you can get something incredible for as little as you want to pay. And if you beat the average price, you’ll receive the fully upgraded bundle! Included in this Pay What You Want deal, are the following courses:

      Pay What You Want (as little as $1) for the following course:

      Image Processing with Python: Build an Instagram-Style Filter
      Develop a Photo Filter Editor from Scratch & Master Your Understanding of Matrices, Color Models & More

      Beat the average price to get the following courses as well:

      Azure Deployment for Node.js Applications
      Discover How to Deploy Your Node.js Apps to Microsoft Azure & Make Them Accessible Online

      MongoDB for Beginners
      Get Acquainted with MongoDB & Discover How to Manage Data Operations Like a Pro

      Node.js For Beginners: Create Server-Side Apps with JavaScript
      Learn How to Build Fast Web Applications with Node.js, the Server-Side Solution for JavaScript

      Intro to Next.js
      Get started with the Minimalist Framework That Allows You to Build Static, Server-Rendered React Apps

      Intro to Bootstrap
      Learn Bootstrap, the Secret to Quickly Creating Professional & Attractive Websites + Web Apps

      Create Interactive Pages with Javascript & the DOM API
      Explore the DOM API, HTML5 & Advanced JavaScript Concepts by Building Three Projects

      JavaScript Programming: Learn by Making a Mobile Game
      Dive into JavaScript's Core Concepts By Building a Game From Scratch

      HTML & CSS Course
      Learn HTML & CSS from Scratch by Creating a Responsive Landing Page

      AWS Deployment for Node.js Applications
      Discover How to Deploy Your Node.js Apps to AWS & Make Them Accessible Online

      The Complete HTML5 Mobile Game Development Course
      Use the Phaser HTML5 Framework & JavaScript Technologies to Build Cross-Platform Games

      Master Unity Game Development: Beginner's Bootcamp
      Learn Unity & C# by Creating a 3D Multi-Level Platformer Game

      Master Unity Mobile Game Development
      Learn the Quirks of Mobile Game Development with Unity

      Unity Game Development: Build a First-Person Shooter
      Master Unity by Building Your Own Version of Doom or Call of Duty

      Data Manipulation with Pandas
      Learn How to Read & Manipulate Data + Prepare It for Analysis Using the Pandas Library

      The Complete Python Data Visualization Course
      Master the Major Plotting Libraries Matplotlib, Seaborn & Bokeh + Use Them to Create Beautiful Plots

      Learn Python 3 by Making a Game
      Get up to Speed with Python by Creating Your Very Own Game

      Build a Tower Defense Game with Phaser 3
      Master the Skills Needed to Build a Complete Tower Defense Game Using Phaser 3

      Numpy Matrices & Vectors
      Take Advantage of the Numpy Library & Build Powerful + Functional Arrays and Matrices

      The Complete Responsive Web Design Course
      Learn How to Build Professional Websites That Work Across Different Devices & Platforms

      Good to know
      Certification of completion included Length of time users can access this course: lifetime Redemption deadline: redeem your code within 30 days of purchase Here's the deal:
      The bundle represents an overall retail value of $3,732 But you can Pay What You Want for the unlocked courses (as little as $1) Beat the average price and you'll take home the entire bundle. Qualify for the giveaway!
      Beat the Leader's price and get entered into the epic giveaway—plus get featured on the leaderboard!

      >> Pay What You Want for The 20-Course Programming Bundle <<
      See other Pay What You Want deals. This is a time-limited offer that ends soon.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:



      The Win Your Dream 2020 Tesla Model 3 Giveaway 20% off Ivacy VPN subscription with coupon code IVACY20 NordVPN subscription at up to 68% off for a 2 year plan Private Internet Access VPN subscription at up to 71% off Unlocator VPN or SmartDNS unblock Geoblock with 7-day free trial Subscribe to Neowin for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

    • By News Staff
      Save 97% off this Complete One-Hour Coder Bundle - now just $34.99
      by Steven Parker

      Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can save 97% off this Complete One-Hour Coder Bundle. Train your inner programmer with 6 one-hour courses on C++, CSS, HTML, JavaScript, and Python.



      This bundle consists of the following courses:

      C++ Foundations
      Begin Your Coding Journey with the High-End, Popular C++ Language for Software & Game Development CSS Foundations
      Enhance Website Aesthetics & Designs with the Style Sheet Language CSS HTML Foundations
      Start Creating Your Own Websites, Web Apps, & More Java Foundations
      Master the General Purpose & Object-Oriented Language of Java for Mobile Development JavaScript Foundations
      Learn JavaScript for Web & HTML5 Game Development Python Foundations
      Learn the Foundations of Python for Data Science & Machine Learning Good to know
      Updates included Certification of completion included Length of time users can access this course: lifetime Redemption deadline: redeem your code within 30 days of purchase For specifications, license and instructor info please click here.

      Here's the deal:
      This Complete One-Hour Coder Bundle normally costs* $1,200, but it can be yours for just $34.99 for a limited time, that's a saving of $1,165.01 (97%) off.

      >> Get this deal, or learn more about it here <<
      See all Online Courses on offer. This is a time-limited offer that ends soon.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:



      The Win Your Dream 2020 Tesla Model 3 Giveaway 20% off Ivacy VPN subscription with coupon code IVACY20 NordVPN subscription at up to 68% off for a 2 year plan Private Internet Access VPN subscription at up to 71% off Unlocator VPN or SmartDNS unblock Geoblock with 7-day free trial Subscribe to Neowin for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

    • By News Staff
      This Mobile App Developers Bundle is now 91% off - now just $29.99
      by Steven Parker

      Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can save 91% off the Mobile App Developers Bundle. Over 20 hours of beginner-friendly training to help you make bank and unleash your mobile app development and programming skills.



      This deal consists of the following courses:

      iOS Application Development for Beginners
      Build a Basic Foundation In iOS Development with Swift & Apple's IDE XCode Intro to Java for Android Development
      Begin Your Mobile Development Career by Learning Android Studio & Java for Basic Applications Kotlin for Beginners
      Kickstart Your Mobile Development Career by Learning Android Studio & Java for Basic Applications Android SQL Databases for Beginners
      Control Data with SQL Databases & Upgrade Your Android Mobile Applications The Complete RESTful APIs for Android Course
      Develop Your Own Weather Forecasting Application for Android While Learning RESTful APIs & Kotlin The Complete Firebase Course with Kotlin
      Build Mobile Apps without Back-End Programming Using Kotlin & Firebase The Complete Mobile App Development Course with Flutter
      Develop Android & iOS apps Using Flutter – The Popular, Open-Source Mobile App Development Framework Good to know
      Length of time users can access this course: lifetime Certification of completion included Redemption deadline: redeem your code within 30 days of purchase For a full description, specs, and instructor info, click here.

      Here's the deal:
      This Mobile App Developers Bundle normally costs* $350, but you can pick it up for just $29.99 for a limited time - that represents a saving of $320.01 (91%) off.

      >> Get this deal, or learn more about it <<
      See all discounted Online Courses. This is a time-limited offer.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:

      The Win Your Dream 2020 Tesla Model 3 Giveaway
      20% off Ivacy VPN subscription with coupon code IVACY20 NordVPN subscription at up to 68% off for a 2 year plan Private Internet Access VPN subscription at up to 71% off Unlocator VPN or SmartDNS unblock Geoblock with 7-day free trial Disable Sponsored posts · Other recent deals · Preferred partner software

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

    • By News Staff
      Get this Interactive Learn to Code Bundle at 73% off for just $29.99
      by Steven Parker

      Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can save 73% off the Interactive Learn to Code Bundle. Start writing codes and programs from scratch with 9 interactive courses on SQL, JavaScript, PHP, jQuery, BootStrap, and more.



      This deal consists of the following courses:

      An Interactive SQL Tutorial for Beginners: Introduction to SQL
      Getting Started with SQL Doesn't Have to Be Hard An Interactive JavaScript Course for Beginners
      Learn JavaScript Interactively with a One-of-a-Kind JS Online Course Interactive jQuery Tutorial: Learn jQuery Step-by-Step
      Take an Interactive jQuery Training Course for Beginners to Quickly Master jQuery Events, Effects & More Learn PHP Online: PHP Basics Explained in an Interactive & Fun Manner
      An Interactive Tutorial for Beginners Who Want to Master PHP Basics in a Non-Boring Way The Complete Solidity Smart Contract Guide
      Master Solidity Programming Through Hands-On Experience Master Python Fundamentals the Fun Way: An Interactive Python Tutorial
      A Python Training Course for Absolute Beginners Who Wants to Master the Language Without Getting Bored A Responsive Web Design Course: Find Out How to Create a Responsive Website
      Make a Website Mobile-Friendly with a Step by Step, Responsive Web Design Tutorial Bootstrap Tutorial: Learn to Create Dynamic Websites in a Pinch
      Find Out How to Use Bootstrap the Fun Way by Using an Interactive Course An Interactive Java Tutorial: Learn by Practice!
      Learn Java From Scratch by Combining Theory with Hands-On Coding Experience Good to know
      Length of time users can access this course: lifetime Certification of completion included Redemption deadline: redeem your code within 30 days of purchase For a full description, specs, and instructor info, click here.

      Here's the deal:
      This Interactive Learn to Code Bundle normally costs* $112, but you can pick it up for just $29.99 for a limited time - that represents a saving of $82.01 (73%) off.

      >> Get this deal, or learn more about it <<
      See all discounted Online Courses. This is a time-limited offer.


      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:

      The Win Your Dream 2020 Tesla Model 3 Giveaway
      The Nintendo Gaming Bundle Giveaway 20% off Ivacy VPN subscription with coupon code IVACY20 NordVPN subscription at up to 68% off for a 2 year plan Private Internet Access VPN subscription at up to 71% off Unlocator VPN or SmartDNS unblock Geoblock with 7-day free trial Disable Sponsored posts · Other recent deals · Preferred partner software

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

      running costs.

    • By News Staff
      Save 73% off the Interactive Learn to Code Bundle - now just $29.99
      by Steven Parker

      Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can save 73% off the Interactive Learn to Code Bundle. Start writing codes and programs from scratch with 9 interactive courses on SQL, JavaScript, PHP, jQuery, BootStrap, and more.



      This deal consists of the following courses:

      An Interactive SQL Tutorial for Beginners: Introduction to SQL
      Getting Started with SQL Doesn't Have to Be Hard An Interactive JavaScript Course for Beginners
      Learn JavaScript Interactively with a One-of-a-Kind JS Online Course Interactive jQuery Tutorial: Learn jQuery Step-by-Step
      Take an Interactive jQuery Training Course for Beginners to Quickly Master jQuery Events, Effects & More Learn PHP Online: PHP Basics Explained in an Interactive & Fun Manner
      An Interactive Tutorial for Beginners Who Want to Master PHP Basics in a Non-Boring Way The Complete Solidity Smart Contract Guide
      Master Solidity Programming Through Hands-On Experience Master Python Fundamentals the Fun Way: An Interactive Python Tutorial
      A Python Training Course for Absolute Beginners Who Wants to Master the Language Without Getting Bored A Responsive Web Design Course: Find Out How to Create a Responsive Website
      Make a Website Mobile-Friendly with a Step by Step, Responsive Web Design Tutorial Bootstrap Tutorial: Learn to Create Dynamic Websites in a Pinch
      Find Out How to Use Bootstrap the Fun Way by Using an Interactive Course An Interactive Java Tutorial: Learn by Practice!
      Learn Java From Scratch by Combining Theory with Hands-On Coding Experience Good to know
      Length of time users can access this course: lifetime Certification of completion included Redemption deadline: redeem your code within 30 days of purchase For a full description, specs, and instructor info, click here.

      Here's the deal:
      This Interactive Learn to Code Bundle normally costs* $112, but you can pick it up for just $29.99 for a limited time - that represents a saving of $82.01 (73%) off.

      >> Get this deal, or learn more about it <<
      See all discounted Online Courses. This is a time-limited offer.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:

      The Nintendo Gaming Bundle Giveaway 20% off Ivacy VPN subscription with coupon code IVACY20 NordVPN subscription at up to 68% off for a 2 year plan Private Internet Access VPN subscription at up to 71% off Unlocator VPN or SmartDNS unblock Geoblock with 7-day free trial Disable Sponsored posts · Other recent deals · Preferred partner software

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.