Custom Quote Request
require([ 'jquery', 'Amasty_Customform/js/google-map-loader', 'Amasty_Customform/js/form-render', 'Amasty_Customform/js/form-filler', 'Amasty_Customform/js/am-google-map', 'Amasty_Customform/js/form-init' ], function ($, googleMapLoader) { function renderForm () { var renderedFormContainer = $('#amform-form-5 .insert-container'), renderedForm; $('body').addClass('amform-body'); renderedFormContainer.formRender( 5, {"dataType":"json","formData":"[[{\"type\":\"file\",\"name\":\"file-1701462074433\",\"entity_id\":\"\",\"label\":\"Upload Photo Here or Input Description Below \\ud83d\\udcf8\",\"className\":\"form-control\",\"style\":\"\",\"description\":\"Make sure photo is clear and ideally shows MFG# or NDC#\",\"allowed_extension\":\"\",\"max_file_size\":\"\",\"multiple\":\"1\",\"layout\":\"one\",\"parentType\":\"select\",\"dependency\":[],\"validation_fields\":[]},{\"type\":\"textarea\",\"name\":\"textarea-1681415977587\",\"entity_id\":\"\",\"label\":\"Product Description\",\"className\":\"form-control\",\"style\":\"default\",\"placeholder\":\"Please specify size, concentration and NDC or MFR # if applicable.\",\"description\":\"\",\"rows\":\"\",\"value\":\"\",\"maxlength\":\"\",\"layout\":\"one\",\"parentType\":\"input\",\"dependency\":[],\"validation_fields\":[]},{\"type\":\"textarea\",\"name\":\"textarea-1681415735604\",\"entity_id\":\"\",\"label\":\"Additional Details To Help Us Provide an Accurate Quote\",\"className\":\"form-control\",\"style\":\"\",\"placeholder\":\"Example: Quantity needed, Lead time needed, If you are open to equivalent alternatives\",\"description\":\"\",\"rows\":\"\",\"value\":\"\",\"maxlength\":\"\",\"layout\":\"one\",\"parentType\":\"input\",\"dependency\":[],\"validation_fields\":[]},{\"type\":\"textinput\",\"name\":\"textinput-1703882424131\",\"entity_id\":\"\",\"label\":\"Contact Information - Must Include Email, Phone, Facility Name\",\"className\":\"form-control\",\"style\":\"default\",\"placeholder\":\"\",\"required\":\"1\",\"description\":\"\",\"validation\":\"\",\"regexp\":\"\",\"errorMessage\":\"\",\"value\":\"\",\"maxlength\":\"\",\"layout\":\"one\",\"parentType\":\"input\",\"dependency\":[],\"validation_fields\":{\"required\":\"1\"}}]]","src_image_progress":"https:\/\/shop.tccpharma.com\/pub\/static\/frontend\/Codazon\/fastest_drug_pharmacy\/en_US\/Amasty_Customform\/images\/loading.gif","ajax_submit":0,"pageTitles":"[\"Custom Product Request\"]","submitButtonTitle":"Submit Custom Request","dateFormat":"mm\/dd\/yy","placeholder":"mm\/dd\/yyyy"}, 0, function () { renderedForm = $('[data-amcform-js="multi-page"]'); if (renderedForm.length) { renderedForm.amFormInit(); renderedForm.amFormFill({ 'formParams' : {"urlSession":"https:\/\/shop.tccpharma.com\/amasty_customform\/form\/sessiondata\/","formId":5} }); renderedForm.trigger('contentUpdated'); } $(document).on('amcform-init-multipage', function (e, form) { var $form = form.find('[data-amcform-js="multi-page"]'); if ($form.length) { $form.amFormFill({ 'formParams' : {"urlSession":"https:\/\/shop.tccpharma.com\/amasty_customform\/form\/sessiondata\/","formId":5} }); } }); } ); } renderForm(); });