# weforms/1.0.1/includes/admin/views/form-settings.php

weForms – Easy Drag &amp; Drop Contact Form Builder For WordPress, version 1.0.1. 58 lines.

- Page: https://pluginprobe.com/plugins/weforms/1.0.1/code/includes/admin/views/form-settings.php
- Raw: https://pluginprobe.com/plugins/weforms/1.0.1/raw/includes/admin/views/form-settings.php
- Modified: 2017-08-01T07:10:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/weforms/1.0.1/code/includes/admin/views/form-settings.php#L10-L20`.

```php
<table class="form-table">
    <tr class="wpuf-redirect-to">
        <th><?php _e( 'Redirect To', 'weforms' ); ?></th>
        <td>
            <select v-model="settings.redirect_to">
                <?php
                $redirect_options = array(
                    'same' => __( 'Same Page', 'weforms' ),
                    'page' => __( 'To a page', 'weforms' ),
                    'url'  => __( 'To a custom URL', 'weforms' )
                );

                foreach ($redirect_options as $to => $label) {
                    printf('<option value="%s"%s>%s</option>', $to, '', $label );
                }
                ?>
            </select>
            <p class="description">
                <?php _e( 'After successfull submit, where the page will redirect to', 'weforms' ) ?>
            </p>
        </td>
    </tr>

    <tr class="wpuf-same-page" v-show="settings.redirect_to == 'same'">
        <th><?php _e( 'Message to show', 'weforms' ); ?></th>
        <td>
            <textarea rows="3" cols="40" v-model="settings.message"></textarea>
        </td>
    </tr>

    <tr class="wpuf-page-id" v-show="settings.redirect_to == 'page'">
        <th><?php _e( 'Page', 'weforms' ); ?></th>
        <td>
            <?php $dropdown = wp_dropdown_pages( array(
                'name'             => 'wpuf_settings[page_id]',
                'show_option_none' => __( '&mdash; Select a page &mdash;', 'weforms' ),
                'echo'             => false
            ) );

            echo str_replace('<select', '<select v-model="settings.page_id"', $dropdown );
            ?>
        </td>
    </tr>

    <tr class="wpuf-url" v-show="settings.redirect_to == 'url'">
        <th><?php _e( 'Custom URL', 'weforms' ); ?></th>
        <td>
            <input type="url" v-model="settings.url">
        </td>
    </tr>

    <tr class="wpuf-submit-text">
        <th><?php _e( 'Submit Button text', 'weforms' ); ?></th>
        <td>
            <input type="text" v-model="settings.submit_text">
        </td>
    </tr>
</table>
```
