Making a Custom Form
-
Hello @g3ronim0
I think the only draw back to this plugin is the topic status switcher. It relies on jQuery and I’m looking to change it to make it a great plugin. ?? I’ve tried to create a custom form but I cannot get the status to change. This is the code I inserted in to a Topic Info template which is loaded after the reply form for single topics.
<?php echo '<form method="post" action="' . esc_url(bbp_get_topic_permalink($topic_id) ) . '" name="_support_status">'; echo '<select class="support-select-status" name="_support_status" data-topicsupport="' . $topic_id . '">'; echo '<option value="1">Not Resolved</option>'; echo '<option value="2">Resolved</option>'; echo '<option value="3">Not a Support Question</option>'; echo '</select>'; echo '<button type="submit" name="_support_status">Change</button>'; echo '</form>'; ?>
This looks like it should be working. I directly set the name of the selector and form as the name found in the default form with the plugin. Any ideas on how to get this working?
The main thing is the loader is not accessible with assistive screen reading technology and I need the topic status drop down to act as a form.
Thank you.
- The topic ‘Making a Custom Form’ is closed to new replies.