• 0

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


Question

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.

4 answers to this question

Recommended Posts

  • 0

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.

  • 0

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...

 

  • 0

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.

  • 0

 

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.

 

 

This topic is now closed to further replies.
  • Posts

    • DiskGenius 6.2.0.1829 - All Versions: Free, Lite & Portable by Razvan Serea DiskGenius is a full-featured partition manager, which is designed to optimize disk usage for Windows users. It will efficiently help you recover lost data, resize/split partition, backup files, edit hex data, check bad sectors, manage virtual disks, erase data, etc.. Create a system image backup for current Windows with simple clicks to keep the operating system under protection. DiskGenius key features: Partition Management - It can create format, resize, extend, backup, split, hide and clone partition, both MBR and GPT are supported. Disk and partition conversion - Convert dynamic disk to basic, convert virtual disk format and convert MBR to GPT, convert primary partition to logical. File recovery - It can recover files deleted or emptied form recycle bin, recover files from damaged partition or disk and recover files by file type and supports file preview and file filter. Partition recovery - It is the best partition recovery program in that it can recover files from damaged, corrupted and RAW partitions, search for lost partition and recover files from it, besides, it can fix partition table. RAID recovery - It can reconstruct Virtual RAID and recover files from it, and all RAID types are supported. Sector Editor - A Hex editor is embedded to help users edit raw hex data and recover data manually. Backup and Restore - It can backup and restore partition including system partition, hard disk and partition table. Bad Tracks - It can check and repair bad sectors for all storage devices; check hard disk S.M.A.R.T. information. Delete files permanently - It can delete files permanently so that they can't be recovered by any data recovery software. Virtual Disk - It supports virtual disks, including VMware, Virtual PC and Virtual Box. Create WinPE bootable disk and you can manage disk partition when system crashes or there is no operating system on your computer. Support FAT12/FAT16/FAt32/exFAT/NTFS/EXT2/EXT3/EXT4 file system format. DiskGenius 6.2.0.1829 changelog: Add the "Disk Speed Test" feature. Add the "Windows Boot Repair and Conversion" feature. Add the BMB21-2019 erase standard to the "Erase Sectors" feature. Add support for restoring an individual partition from a PMFX disk image file. Enhanced The "Verify Or Repair Bad Sectors/Blocks" feature displays disk read speed in the detection window during scanning. The "Quick Partition" dialog box allows users to quickly select the number of partitions by pressing the numeric keys 1, 2, 7, 8, or 9. The "Set Volume Name" dialog box supports selecting preset volume labels provided by the software. The "Copy Sectors" feature supports resuming copy tasks after modifying the number of skipped bad sectors. Add the "TRIM Optimization" option to the format dialog box. The "Clone Partition" and "Clone Disk" features perform TRIM optimization on target partitions or disks before cloning. Add support for Not Equal To search conditions (prefixed with "!") when searching hexadecimal data in the sector editor. Optimize the display of capacity values in the program interface to show two decimal places. Add a minimize button to dialogs that may require long processing time. Enhance support for the ReFS file system. Enhance support for newer HIF and MP4 formats when recovering files by type. Enhance support for the EXT4 file system. Enhance compatibility of the "File Recovery" feature with special data structures. Fixed Fixed the issue that the selected file system type automatically reverted to NTFS after changing it to exFAT or EXT4 in the "Quick Partition" dialog box. Fixed inaccurate Unicode string search results in the "Sector Editor" feature. Fixed the issue that exceptions might occur when adding multiple disks in the "Erase Sectors" feature. Fixed the issue that insufficient target disk space was incorrectly reported in some cases when cloning, backing up, or restoring disks. Fixed the issue that folder modification timestamps were not preserved when copying files from ReFS partitions. Fixed the issue that Excel-format reports generated by features such as file copying or bad sector checking could not be opened when the report contained more than one million rows. Fixed the issue that folders were not displayed in the exclude-folder dialog box when backing up partitions to image files. Fixed the issue that the "Erase Sectors" feature could not be executed in some cases. Download: DiskGenius 6.2.0.1829 | 63.9 MB (Freeware, paid upgrade available) Download: DiskGenius Portable 64-bit | 40.0 MB Download: DiskGenius Portable 32-bit | 36.0 MB Download: DiskGenius Lite 64-bit | 13.4 MB Download: DiskGenius Lite 32-bit | 11.6 MB View: DiskGenius Home Page | DiskGenius Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Really? Use a better search engine https://www.google.com/search?...ourceid=chrome&ie=UTF-8
    • Seems like Neowin has transitioned into being simps for the white house. I can't find a review for the last UFC games that came out.
  • Recent Achievements

    • Week One Done
      agatameier earned a badge
      Week One Done
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
    • Dedicated
      jordanspringer earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      513
    2. 2
      +Edouard
      182
    3. 3
      PsYcHoKiLLa
      143
    4. 4
      ATLien_0
      95
    5. 5
      Steven P.
      76
  • Tell a friend

    Love Neowin? Tell a friend!