This commit is contained in:
asaki222 2024-11-25 15:20:30 -05:00
parent f440f1ac1c
commit 7e0cdb813c
No known key found for this signature in database
GPG key ID: 2C4F802060E06EA4
2 changed files with 3 additions and 1 deletions

View file

@ -2925,6 +2925,7 @@ document.addEventListener("DOMContentLoaded", () => {
const selectParent = select?.parentElement;
const suborgContainer = document.getElementById("suborganization-container");
const suborgDetailsContainer = document.getElementById("suborganization-container__details");
const subOrgCreateNewOption = document.getElementById("option-to-add-suborg").value
if (!radios || !select || !selectParent || !suborgContainer || !suborgDetailsContainer) return;
// requestingSuborganization: This just broadly determines if they're requesting a suborg at all
@ -2949,7 +2950,7 @@ document.addEventListener("DOMContentLoaded", () => {
// Add fake "other" option to sub_organization select
if (select && !Array.from(select.options).some(option => option.value === "other")) {
select.add(new Option("Other (enter your suborganization manually)", "other"));
select.add(new Option(subOrgCreateNewOption, "other"));
}
if (requestingNewSuborganization.value === "True") {

View file

@ -7,6 +7,7 @@
{% endblock %}
{% block form_fields %}
<input id="option-to-add-suborg" value="Other (enter your suborganization manually)"/>
<fieldset class="usa-fieldset">
<legend>
<h2>Who will use the domain youre requesting?</h2>