diff --git a/static/js/src/landscape-saas-form.js b/static/js/src/landscape-saas-form.js new file mode 100644 index 00000000000..35a86e75169 --- /dev/null +++ b/static/js/src/landscape-saas-form.js @@ -0,0 +1,18 @@ +function stringifyCustomFields() { + const checkboxes = document.querySelectorAll(".js-checkbox"); + const textarea = document.getElementById("Comments_from_lead__c"); + textarea.value = ""; + let ubuntuProLocations = ""; + + checkboxes.forEach(function (checkbox) { + if (checkbox.children[0].checked) { + const text = checkbox.children[1].innerHTML; + ubuntuProLocations += " \r\n" + text; + } + }); + + if (ubuntuProLocations) { + textarea.value += + " \r\n" + "I have Ubuntu Pro on:" + ubuntuProLocations + " \r\n"; + } +} diff --git a/templates/landscape/pricing.html b/templates/landscape/pricing.html index 14733d518e2..9de71de4458 100644 --- a/templates/landscape/pricing.html +++ b/templates/landscape/pricing.html @@ -160,7 +160,7 @@

Speak to a member of our team

- + {% endblock content %} diff --git a/templates/shared/forms/interactive/landscape-pricing-saas.html b/templates/shared/forms/interactive/landscape-pricing-saas.html index b24e2cbd634..3070665711d 100644 --- a/templates/shared/forms/interactive/landscape-pricing-saas.html +++ b/templates/shared/forms/interactive/landscape-pricing-saas.html @@ -9,7 +9,7 @@

Submit your information to get a free account

-