body {background:transparent; padding: 0px 0px 0px 50px; font-family: Helvetica, sans-serif, Verdana, Arial;} h3 {font-size: 1.2em} input, textarea, select {width: 200px;} .document{width: 300px;} .tableForm {width: 100%; text-align: left; padding: 10px 6px 12px 10px;} .tableForm tr td {padding: 0px 0px 15px 0px;} .column_25 {width: 25%;} .required {color: rgb(255, 0, 0);} .current-required-field {background-color: yellow;} .error_zone {color: red; font-weight: bold; line-height: 30px;} .datetimecombo_time_section { display: inline-block; } .datetimecombo_time_section select { max-width: 60px; padding-right: 2px; } Donacions (Empreses) | Obertament Organitzacions Nom de l'empresa: * Correu electrònic de contacte: * Número d'identificació fiscal: * Donacions Import: * Mitjà de pagament: * Domiciliació Targeta Transferència rebuda PayPal Bizum Compte bancari: Periodicitat: * Mensual Bimestral Trimestral Quadrimestral Semestral Anual Puntual Concepte del rebut: Gràcies per lluitar contra l'estigma amb nosaltres! <script type="text/j-avascript"> var stic_Web_Forms_LBL_PROVIDE_WEB_FORM_FIELDS = "Ompliu els camps obligatoris"; var stic_Web_Forms_LBL_INVALID_FORMAT = "Comproveu el format del camp"; var stic_Web_Forms_LBL_SERVER_CONNECTION_ERROR = "Ha fallat la connexió amb el servidor"; var stic_Web_Forms_LBL_SIZE_FILE_EXCEED = "La mida del fitxer no pot ser superior a "; var stic_Web_Forms_LBL_SUM_SIZE_FILES_EXCEED = "La suma de les mides dels fitxers no pot ser superior a "; var APP_LBL_REQUIRED_SYMBOL = "*"; var APP_DATE_FORMAT = "%d/%m/%Y"; var stic_Payment_Commitments_LBL_IBAN_NOT_VALID = "El compte bancari no és correcte."; var stic_Payment_Commitments_LBL_PERIODICITY_PUNCTUAL = "Aquest mitjà de pagament només opera amb pagaments únics. Segur que voleu canviar la periodicitat?"; var stic_Payment_Commitments_LBL_PAYMENT_TYPE_PUNCTUAL = "Aquest mitjà de pagament només opera amb pagaments únics. Segur que voleu canviar el mitjà de pagament?"; /** * Change the visibility of a field * @param field field to be changed * @param visibility visibility applied to the field */ function changeVisibility(field, visibility) { var o_td = document.getElementById("td_" + field); var o_td_lbl = document.getElementById("td_lbl_" + field); if (o_td) { o_td.style.display = visibility; } if (o_td_lbl) { o_td_lbl.style.display = visibility; } } /** * Show a hidden field * @param field field to be shown */ function showField(field) { changeVisibility(field, "table-cell"); } /** * Hide a field * @param field field to be hidden */ function hideField(field) { changeVisibility(field, "none"); } // STIC-custom 20211122 - jch - Avoid multiple submission // https://github.com/SinergiaTIC/SinergiaCRM-SuiteCRM/pull/489 var formHasAlreadyBeenSent = false; /** * Form submission function * @param form form to be sent */ function submitForm(form) { if (checkFields() && checkFormSize()) { if (typeof validateCaptchaAndSubmit != "undefined") { validateCaptchaAndSubmit(); } else { // STIC-custom 20211122 - jch - Avoid multiple submission // https://github.com/SinergiaTIC/SinergiaCRM-SuiteCRM/pull/489 // form.submit(); if (formHasAlreadyBeenSent != true) { formHasAlreadyBeenSent = true; form.submit(); } else { console.log("Form is locked because it has already been sent."); } // END STIC } } return false; } /** * Add a field as required * @param field field that will be set as required */ function addRequired(field) { var reqs = document.getElementById("req_id").value; if (-1 == reqs.search(field + ";")) { document.getElementById("req_id").value += field + ";"; } var requiredLabel = document.getElementById("lbl_" + field + "_required"); if (!requiredLabel) { var rlParent = document.getElementById("td_lbl_" + field); if (rlParent) { var newLabel = document.createElement("span"); newLabel.id = "lbl_" + field + "_required"; newLabel.class = "required"; newLabel.style = "color: rgb(255, 0, 0);"; newLabel.innerText = APP_LBL_REQUIRED_SYMBOL; rlParent.appendChild(newLabel); } } } /** * Delete a field as required * @param field field that will be set as no required */ function removeRequired(field) { var reqs = document.getElementById("req_id").value; document.getElementById("req_id").value = reqs.replace(field + ";", ""); var requiredLabel = document.getElementById("lbl_" + field + "_required"); if (requiredLabel) { requiredLabel.parentNode.removeChild(requiredLabel); } } /** * Validate different form fields * @returns {Boolean} */ function checkFields() { // Check the required fields, nif / cif fields, mails and date fields if (!validateRequired() || !validateNifCif() || !validateMails() || !validateDates()) { return false; } else { // If everything is correct replace the Boolean fields var boolHidden = document.getElementById("bool_id"); if (boolHidden != null) { var reqs = boolHidden.value; if (reqs.length) { // If there are Boolean fields, they are treated bools = reqs.substring(0, reqs.lastIndexOf(";")); var boolFields = new Array(); var boolFields = bools.split(";"); nbrFields = boolFields.length; for (var i = 0; i 0) { for (var i = 0; i 12 || month < 1) { return false; } else { if (day < 1) { return false; } switch (month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: return day