# formidable/5.2/classes/views/frm-forms/settings-buttons.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version 5.2. 57 lines.

- Page: https://pluginprobe.com/plugins/formidable/5.2/code/classes/views/frm-forms/settings-buttons.php
- Raw: https://pluginprobe.com/plugins/formidable/5.2/raw/classes/views/frm-forms/settings-buttons.php
- Modified: 2021-09-16T18:46:18+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/formidable/5.2/code/classes/views/frm-forms/settings-buttons.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}
?>
<p class="howto">
	<?php esc_html_e( 'Select a style for this form and set your button text.', 'formidable' ); ?>
</p>
<table class="form-table">
	<tr>
		<td class="frm_left_label">
			<label for="custom_style">
				<?php esc_html_e( 'Style Template', 'formidable' ); ?>
			</label>
		</td>
		<td>
		<?php if ( $no_global_style ) { ?>
				<p class="howto">
					<?php esc_html_e( 'The form styling has been disabled in the Global settings.', 'formidable' ); ?>
				</p>
				<input type="hidden" name="options[custom_style]" value="<?php echo esc_attr( $values['custom_style'] ); ?>" />
		<?php } else { ?>
			<select name="options[custom_style]" id="custom_style">
			<option value="1" <?php selected( $values['custom_style'], 1 ); ?>>
				<?php esc_html_e( 'Always use default', 'formidable' ); ?>
			</option>
			<?php foreach ( $styles as $s ) { ?>
				<option value="<?php echo esc_attr( $s->ID ); ?>" <?php selected( $s->ID, $values['custom_style'] ); ?>>
					<?php echo esc_html( $s->post_title . ( empty( $s->menu_order ) ? '' : ' (' . __( 'default', 'formidable' ) . ')' ) ); ?>
				</option>
				<?php } ?>
				<option value="0"
				<?php
				selected( $values['custom_style'], 0 );
				selected( $values['custom_style'], '' );
				?>>
				<?php esc_html_e( 'Do not use Formidable styling', 'formidable' ); ?>
			</option>
			</select>
		<?php } ?>
		</td>
	</tr>
	<?php do_action( 'frm_add_form_style_tab_options', $values ); ?>
	<tr>
		<td colspan="2">
			<h3><?php esc_html_e( 'Buttons', 'formidable' ); ?></h3>
		</td>
	</tr>
	<tr>
		<td><label for="frm_submit_button_text"><?php esc_html_e( 'Submit Button Text', 'formidable' ); ?></label></td>
		<td>
			<input id="frm_submit_button_text" type="text" name="options[submit_value]" value="<?php echo esc_attr( $values['submit_value'] ); ?>" />
		</td>
	</tr>
	<?php do_action( 'frm_add_form_button_options', $values ); ?>
</table>

```
