I have a form on a webpage that is dynamic (changes when certain fields are updated). I am able to update the value of the dropdown but it does not cause the form to change or update based on this selection as it would if manually selected. For instance if I select 'Payment Plans Activity' a date field might show up that wasn't there before and so on. As you can see below, it updates the class 'styledSelect' to the new value but the selected values don't change. Below is what I have tried so far and the HTML as well.
JavaScript
var rep = document.getElementById("report_select");
rep.value = 'payment_plan_activity_v2'
// What solutions I tried to find that didn't work
document.getElementById("report-form").reset() //Didn't do anything
parent.document.getElementById("report-form").reload() //Didn't work
HTML
<form id="report-form" data-url="/reports" class="report-form" action="/reports" accept-charset="UTF-8" method="post">
<input name="utf8" type="hidden" value="✓">
<input type="hidden" name="authenticity_token" value="N90zoc0xgUnv8cx37YQBsvRkefoK7BLysTgqOpXkVAiEa5ehEUYg4jGl7yHCDVzNZGxGa4ONLQkIzP8pXi5frA==">
<div class="filters float-left">
<label for="report_select-combobox">Report</label>
<div class="select simpleeSelect report-select select-reports-list">
<input role="combobox" type="text" class="selectAutoCompleteInput" id="report_select-combobox" style="width: 170px; height: 29px;">
<select name="report" id="report_select" autocomplete="false" class="simpleeSelect report-select select-reports-list" tabindex="-1">
<option value="account_balances" selected="selected">Account Balances</option>
<option value="ach_transfers">Ach Transfers</option>
<option value="suspicious_accounts">Blocked Accounts</option>
<option value="communication_v2">Communication</option>
<option value="declined_payments">Declined Payments</option>
<option value="devices">Devices</option>
<option value="subscription_log">Email Subscription Updates</option>
<option value="ivr_calls">IVR</option>
<option value="manual_payments">Manual Payments</option>
<option value="email_activity_log">New Emails</option>
<option value="payments_summary">Operational</option>
<option value="osg_ncoa">Paper Statements Forwarded</option>
<option value="paper_statements_summary">Paper Statements Summary</option>
<option value="nixie">Paper Statements Undeliverable</option>
<option value="paperless_activation">Paperless</option>
<option value="payment_plan_activity_v2">Payment Plans Activity</option>
<option value="payment_plan_inventory_v2">Payment Plans Inventory</option>
<option value="payments_summary_by_user">Payments By User</option>
<option value="payments_detailed">Payments Detailed</option>
<option value="payments_summary_by_sub_department_and_provider">Payments Summary by Sub Department & Facility</option>
<option value="pre_service_appointments">Pre-Service Appointments</option>
<option value="reconciliation">Reconciliation</option>
<option value="echeck_bounce">Returned Checks</option>
<option value="scheduled_payments">Scheduled Payments</option>
<option value="billing">Simplee Billing</option>
<option value="sms_subscription_log">Text Messaging Subscription</option>
<option value="voided_payments">Voided Payments</option>
</select>
<div class="styledSelect">
<span>Payment Plans Activity</span>
<div class="styledSelect-caret-container">
<i class="caret styledSelect-caret"/>
</div>
</div>
<ul class="options" style="display: none;">
<li rel="account_balances" class="selected">Account Balances</li>
<li rel="ach_transfers" class="">Ach Transfers</li>
<li rel="suspicious_accounts">Blocked Accounts</li>
<li rel="communication_v2">Communication</li>
<li rel="declined_payments" class="">Declined Payments</li>
<li rel="devices" class="">Devices</li>
<li rel="subscription_log">Email Subscription Updates</li>
<li rel="ivr_calls">IVR</li>
<li rel="manual_payments">Manual Payments</li>
<li rel="email_activity_log">New Emails</li>
<li rel="payments_summary">Operational</li>
<li rel="osg_ncoa">Paper Statements Forwarded</li>
<li rel="paper_statements_summary">Paper Statements Summary</li>
<li rel="nixie" class="">Paper Statements Undeliverable</li>
<li rel="paperless_activation" class="">Paperless</li>
<li rel="payment_plan_activity_v2" class="">Payment Plans Activity</li>
<li rel="payment_plan_inventory_v2" class="">Payment Plans Inventory</li>
<li rel="payments_summary_by_user" class="">Payments By User</li>
<li rel="payments_detailed">Payments Detailed</li>
<li rel="payments_summary_by_sub_department_and_provider">Payments Summary by Sub Department & Facility</li>
<li rel="pre_service_appointments">Pre-Service Appointments</li>
<li rel="reconciliation">Reconciliation</li>
<li rel="echeck_bounce">Returned Checks</li>
<li rel="scheduled_payments">Scheduled Payments</li>
<li rel="billing">Simplee Billing</li>
<li rel="sms_subscription_log">Text Messaging Subscription</li>
<li rel="voided_payments">Voided Payments</li>
</ul>
</div>