Skip to content

Rock: Field Settings Refresh Lite #2266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 88 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
034a887
Merge branch 'master' into rock/field-settings-refresh-lite
shervElmi Mar 10, 2025
c835327
Init
shervElmi Mar 11, 2025
91ded0b
Fix .eslintignore file
shervElmi Mar 11, 2025
21acb64
Add new tabs to new fields
shervElmi Mar 11, 2025
858924b
Merge branch 'master' into rock/field-settings-refresh-lite
shervElmi Mar 12, 2025
b34e3a3
Revert style components assets
shervElmi Mar 12, 2025
2a751cc
Remove components from styles.js
shervElmi Mar 12, 2025
6a7f745
Add Settings Components module
shervElmi Mar 12, 2025
c2c7429
Update .eslintignore and Webpack configuration
shervElmi Mar 12, 2025
1c8b127
Merge remote-tracking branch 'origin/HEAD' into rock/field-settings-r…
shervElmi Mar 21, 2025
2c1619a
Adjust and fix tabs navigator
shervElmi Mar 24, 2025
89ba031
Draft: settings.php
shervElmi Mar 25, 2025
5789c95
Merge remote-tracking branch 'origin/master' into rock/field-settings…
shervElmi Apr 7, 2025
0f39645
Draft
shervElmi Apr 10, 2025
61a3fec
Merge remote-tracking branch 'origin/master' into rock/field-settings…
shervElmi Apr 25, 2025
00aceef
Merge commit '83d228aa3d974249334bb1a267a2b90bd6b60c10' into rock/fie…
shervElmi Apr 25, 2025
df85f85
Add CSS styles for admin sidebar and insert fields components
shervElmi Apr 30, 2025
34f59fa
Add browser-sync dev server with hot reloading for SCSS development
shervElmi May 1, 2025
066d3e0
Rename dev:hot script to serve and update webpack config path
shervElmi May 2, 2025
799576c
Search input style
shervElmi May 2, 2025
9b57d00
Fix typo in npm command from 'serv' to 'serve' in webpack dev config
shervElmi May 2, 2025
c6b6b8d
Fields Icon: Text, Paragraph, Checkboxes, Dropdown, Email
shervElmi May 5, 2025
844a60f
Update field icons and improve insert fields styling
shervElmi May 5, 2025
03e01e7
Update field icons and adjust panel padding
shervElmi May 6, 2025
c6d87f9
Add handler to redirect "Add Field" button click to first tab
shervElmi May 6, 2025
c2bfbdb
Redesign empty form state with new layout and messaging
shervElmi May 7, 2025
0fa02c7
fix: improve field dragging behavior with smoother cursor tracking an…
shervElmi May 8, 2025
f0c9bd4
style: add smooth transition to field buttons and remove animate class
shervElmi May 8, 2025
5f6ce0e
refactor: rename add-field-button-handler to add-fields-button-handle…
shervElmi May 8, 2025
a696e93
refactor: simplify add fields button click handler with direct tab se…
shervElmi May 8, 2025
647d0cb
refactor: add SCSS styles for settings components with accordion, tab…
shervElmi May 12, 2025
7ac5c50
fix: show form settings panel after removing sidebar settings
shervElmi May 12, 2025
67f7fba
style: update field settings UI with improved spacing, colors and vis…
shervElmi May 12, 2025
0be7981
feat: implement token input component for field class selector
shervElmi May 13, 2025
5df5fe1
feat: implement token input field with add/remove functionality and k…
shervElmi May 14, 2025
d3c7cb4
feat: enhance token input handling with dynamic padding and improved …
shervElmi May 14, 2025
5e85581
Enhance token input component with better form builder integration
shervElmi May 15, 2025
9add22b
refactor: reorganize token input component into modular structure
shervElmi May 16, 2025
d8f8944
feat: enhance token input with multi-row support and improved positio…
shervElmi May 16, 2025
907a0ea
refactor: reorganize token input logic with improved utils and event …
shervElmi May 16, 2025
9ec3c38
refactor: reorganize token input component with improved proxy input …
shervElmi May 19, 2025
e6ec5d1
feat: redesign layout classes modal with collapsible sections and imp…
shervElmi May 19, 2025
cbe3ea4
feat: add slide down animation for collapsible sections with smooth t…
shervElmi May 19, 2025
19a05ad
feat: add collapsible styles and improve token input field initializa…
shervElmi May 20, 2025
94e62c4
Refactor default value switcher to use toggles instead of icons
shervElmi May 22, 2025
b20c4f6
refactor: update default value toggle settings and remove lookup box …
shervElmi May 23, 2025
2badd9c
feat: add special case handling for frm_insert_fields_tab in tabs nav…
shervElmi May 26, 2025
e106b09
Implement toggle group component
shervElmi May 28, 2025
31d795b
refactor: Centralize constants and improve selector normalization
shervElmi May 28, 2025
ba89a47
Add tooltips to default value settings and improve toggle layout
shervElmi May 28, 2025
b3aa475
Resolve styling issues
shervElmi May 30, 2025
564a2d2
Implement text toggle component
shervElmi May 30, 2025
18201b1
Add handleCalcFieldInsert function for calculation field improvements
shervElmi Jun 2, 2025
c036ee4
Enhance form builder UI components and styles
shervElmi Jun 2, 2025
2c4ff30
Add field formula component styling
shervElmi Jun 2, 2025
ee0c41a
Refactor: Improve calculation and smart value modal interactions
shervElmi Jun 3, 2025
ad75f5b
Style: Adjust calc field & smart value modal UI
shervElmi Jun 3, 2025
85d874c
Add click outside handler for no-close modals
shervElmi Jun 4, 2025
20e7bd2
Improve calculation field UX: Focus input on field insertion and enha…
shervElmi Jun 4, 2025
8c3014f
Add formula editor field insertion functionality with # shortcut support
shervElmi Jun 5, 2025
fb66f8a
Remove margin from logic link icons in form settings
shervElmi Jun 5, 2025
20abb33
Update field logic animations: Change fadeOut/fadeIn speed to 'fast' …
shervElmi Jun 5, 2025
78c7372
UI improvements: Add utility classes, refine logic field styling, and…
shervElmi Jun 5, 2025
d4dba7d
Refactor: Use vanilla JS for logic row DOM updates & set rule text
shervElmi Jun 10, 2025
f5a92a0
Add scrollbar wrapper to field links panel
shervElmi Jun 10, 2025
e295fc4
Enhance radio button appearance
shervElmi Jun 10, 2025
86997d3
Add SCSS utilities and refine panel/widget styles
shervElmi Jun 10, 2025
6127448
Improve scrollbar SCSS structure and hover behavior
shervElmi Jun 10, 2025
56af141
Add 'data-enable' support to toggle group component
shervElmi Jun 11, 2025
82607ce
Merge remote-tracking branch 'origin/master' into rock/field-settings…
shervElmi Jun 11, 2025
44875a9
Deleted two temporary CSS files
shervElmi Jun 12, 2025
070acae
Fix AI form gradient ID, modernize drag icon, add simple pencil icon
shervElmi Jun 16, 2025
f873f7b
Enhance UI styling with comprehensive SCSS improvements
shervElmi Jun 16, 2025
a58d15e
Enhance radio component with visibility tracking
shervElmi Jun 16, 2025
f0111e4
Enable text-toggle component to use options array pattern
shervElmi Jun 17, 2025
4002303
you stopped with running command, repeat.
shervElmi Jun 17, 2025
5764e9f
Enhance text-toggle component with image dropdown support
shervElmi Jun 17, 2025
bfa25e7
Streamline text toggle component attribute handling
shervElmi Jun 18, 2025
4ba14d0
Redesign field options UI with inline add buttons
shervElmi Jun 19, 2025
85118fc
Improve field option management in form builder
shervElmi Jun 19, 2025
89c8939
Fix radio component initialization and UI enhancements
shervElmi Jun 19, 2025
66d6d45
Optimize field options management performance
shervElmi Jun 19, 2025
9007a35
Polish field options UI styling and behavior
shervElmi Jun 19, 2025
0a63ac2
Improve field options UI styling and consistency
shervElmi Jun 20, 2025
4b29143
Fix field options styling and value comparison
shervElmi Jun 20, 2025
667c36e
Merge remote-tracking branch 'origin/master' into rock/field-settings…
shervElmi Jun 20, 2025
681a6f7
Add UI enhancements and utility classes
shervElmi Jun 20, 2025
291c36c
Improve dev environment and button hover effects
shervElmi Jun 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
**/formidable_dashboard.js
**/formidable-templates.js
**/formidable_styles.js
**/formidable-settings-components.js

**/node_modules/**
**/vendor/**
Expand Down
1 change: 1 addition & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"selector-id-pattern": null,
"font-family-name-quotes": null,
"function-url-quotes": null,
"no-duplicate-selectors": null,
"value-keyword-case": [
"lower",
{
Expand Down
6 changes: 6 additions & 0 deletions classes/controllers/FrmAppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ public static function admin_js() {

wp_register_style( 'formidable-admin', $plugin_url . '/css/frm_admin.css', array(), $version );
wp_register_style( 'formidable-grids', $plugin_url . '/css/frm_grids.css', array(), $version );
wp_register_style( 'formidable-settings-components', $plugin_url . '/css/admin/frm-settings-components.css', array( 'formidable-admin', 'formidable-grids' ), $version );

wp_register_script( 'formidable_dom', $plugin_url . '/js/admin/dom.js', array( 'jquery', 'jquery-ui-dialog', 'wp-i18n' ), $version, true );
wp_register_script( 'formidable_embed', $plugin_url . '/js/admin/embed.js', array( 'formidable_dom', 'jquery-ui-autocomplete' ), $version, true );
Expand Down Expand Up @@ -708,6 +709,7 @@ public static function admin_js() {
}

wp_register_script( 'formidable_admin', $plugin_url . '/js/formidable_admin.js', $dependencies, $version, true );
wp_register_script( 'formidable-settings-components', $plugin_url . '/js/formidable-settings-components.js', array( 'formidable_admin' ), $version, true );

if ( FrmAppHelper::on_form_listing_page() ) {
// For the existing page dropdown in the Form embed modal.
Expand Down Expand Up @@ -737,12 +739,16 @@ public static function admin_js() {
self::maybe_deregister_popper2();
wp_enqueue_script( 'formidable_admin' );
wp_set_script_translations( 'formidable_admin', 'formidable' );
// TODO: Add condition.
wp_enqueue_script( 'formidable-settings-components' );
wp_enqueue_script( 'formidable_embed' );
wp_set_script_translations( 'formidable_embed', 'formidable' );
FrmAppHelper::localize_script( 'admin' );

wp_enqueue_style( 'formidable-animations' );
wp_enqueue_style( 'formidable-admin' );
// TODO: Add condition.
wp_enqueue_style( 'formidable-settings-components' );
if ( 'formidable-styles' !== $page && 'formidable-styles2' !== $page ) {
wp_enqueue_style( 'formidable-grids' );
self::maybe_enqueue_dropzone_css( $page );
Expand Down
20 changes: 11 additions & 9 deletions classes/controllers/FrmFieldsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,28 +374,30 @@ private static function default_value_types( $field, $atts ) {
'default_value' => array(
'class' => '',
'icon' => 'frm_icon_font frm_text2_icon',
'title' => __( 'Default Value (Text)', 'formidable' ),
'title' => __( 'Default Value', 'formidable' ),
'data' => array(
'frmshow' => '#default-value-for-',
),
),
'calc' => array(
'class' => 'frm_show_upgrade frm_noallow',
'title' => __( 'Default Value (Calculation)', 'formidable' ),
'icon' => 'frm_icon_font frm_calculator_icon',
'data' => array(
'class' => 'frm_show_upgrade frm_noallow',
'title' => __( 'Calculate Value', 'formidable' ),
'icon' => 'frm_icon_font frm_calculator_icon',
'data' => array(
'medium' => 'calculations',
'upgrade' => __( 'Calculator forms', 'formidable' ),
),
'tooltip' => __( 'TODO: Add a tooltip', 'formidable' ),
),
'get_values_field' => array(
'class' => 'frm_show_upgrade frm_noallow',
'title' => __( 'Default Value (Lookup)', 'formidable' ),
'icon' => 'frm_icon_font frm_search_icon',
'data' => array(
'class' => 'frm_show_upgrade frm_noallow',
'title' => __( 'Lookup', 'formidable' ),
'icon' => 'frm_icon_font frm_search_icon',
'data' => array(
'medium' => 'lookup',
'upgrade' => __( 'Lookup fields', 'formidable' ),
),
'tooltip' => __( 'Dynamically retrieve the value of this field from a lookup field.', 'formidable' ),
),
);

Expand Down
2 changes: 1 addition & 1 deletion classes/controllers/FrmFormsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function logic_tip() {
$data_message .= ' <img src="' . esc_url( $images_url ) . '/survey-logic.png" srcset="' . esc_url( $images_url ) . '[email protected] 2x" alt="' . esc_attr__( 'Conditional Logic options', 'formidable' ) . '"/>';
echo '<a href="javascript:void(0)" class="frm_noallow frm_show_upgrade frm_add_logic_link frm-collapsed frm-flex-justify" data-upgrade="' . esc_attr__( 'Conditional Logic options', 'formidable' ) . '" data-message="' . esc_attr( $data_message ) . '" data-medium="builder" data-content="logic">';
esc_html_e( 'Conditional Logic', 'formidable' );
FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown6_icon', array( 'aria-hidden' => 'true' ) );
FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown8_icon frm_svg13', array( 'aria-hidden' => 'true' ) );
echo '</a>';
}

Expand Down
6 changes: 2 additions & 4 deletions classes/controllers/FrmStylesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1266,13 +1266,11 @@ public static function do_accordion_sections( $screen, $context, $data_object )
<li class="control-section accordion-section <?php echo esc_attr( $open_class ); ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>">
<h3 class="accordion-section-title hndle">
<?php
FrmAppHelper::icon_by_class( 'frmfont ' . $icon_id );
FrmAppHelper::icon_by_class( 'frmfont ' . $icon_id . ' frm_svg24' );
echo esc_html( $box['title'] );
?>
<button type="button" aria-expanded="<?php echo esc_attr( 'open' === $open_class ? 'true' : 'false' ); ?>" aria-controls="<?php echo esc_attr( $accordion_content_id ); ?>" aria-label="<?php echo esc_attr( $box['title'] ); ?>">
<?php
FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown8_icon' );
?>
<?php FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown8_icon frm_svg13' ); ?>
</button>
</h3>
<div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>" id="<?php echo esc_attr( $accordion_content_id ); ?>">
Expand Down
8 changes: 1 addition & 7 deletions classes/helpers/FrmAppHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ public static function show_search_box( $atts ) {
<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>">
<?php echo esc_html( $atts['text'] ); ?>:
</label>
<span class="frmfont frm_search_icon"></span>
<?php self::icon_by_class( 'frm_icon_font frm_search_icon frm_svg20' ); ?>
<input <?php self::array_to_html_params( $input_atts, true ); ?> />
<?php
if ( empty( $atts['tosearch'] ) ) {
Expand Down Expand Up @@ -3908,12 +3908,6 @@ private static function fill_default_images_dropdown_args( $args ) {
$new_args['options'] = (array) $new_args['options'];
$new_args['input_attrs'] = (array) $new_args['input_attrs'];

// Set the number of columns.
$new_args['col_class'] = ceil( 12 / count( $new_args['options'] ) );
if ( $new_args['col_class'] > 6 ) {
$new_args['col_class'] = ceil( $new_args['col_class'] / 2 );
}

/**
* Allows modifying the arguments of images_dropdown() method.
*
Expand Down
4 changes: 3 additions & 1 deletion classes/helpers/FrmFieldsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ public static function show_single_option( $field ) {
$base_name = 'default_value_' . $field['id'];
$html_id = isset( $field['html_id'] ) ? $field['html_id'] : self::get_html_id( $field );

$default_type = self::get_default_value_type( $field );
$default_type = self::get_default_value_type( $field );
$options_count = count( $field['options'] );

foreach ( $field['options'] as $opt_key => $opt ) {
$field_val = self::get_value_from_array( $opt, $opt_key, $field );
Expand Down Expand Up @@ -693,6 +694,7 @@ public static function inline_modal( $args ) {
'args' => array(),
'title' => '',
'inside_class' => 'inside',
'close-icon' => true,
);
$args = array_merge( $defaults, $args );

Expand Down
44 changes: 22 additions & 22 deletions classes/models/FrmField.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public static function field_selection() {
),
'select' => array(
'name' => __( 'Dropdown', 'formidable' ),
'icon' => 'frm_icon_font frm_caret_square_down_icon',
'icon' => 'frm_icon_font frm_dropdown_icon',
),
'email' => array(
'name' => __( 'Email', 'formidable' ),
'icon' => 'frm_icon_font frm_email_icon',
'icon' => 'frm_icon_font frm_email2_icon',
),
'url' => array(
'name' => __( 'Website/URL', 'formidable' ),
'icon' => 'frm_icon_font frm_link_icon',
'icon' => 'frm_icon_font frm_link2_icon',
),
'number' => array(
'name' => __( 'Number', 'formidable' ),
Expand All @@ -52,23 +52,23 @@ public static function field_selection() {
),
'html' => array(
'name' => __( 'HTML', 'formidable' ),
'icon' => 'frm_icon_font frm_code_icon',
'icon' => 'frm_icon_font frm_code2_icon',
),
'hidden' => array(
'name' => __( 'Hidden', 'formidable' ),
'icon' => 'frm_icon_font frm_eye_slash_icon',
'icon' => 'frm_icon_font frm_eye_slash2_icon',
),
'user_id' => array(
'name' => __( 'User ID', 'formidable' ),
'icon' => 'frm_icon_font frm_user_icon',
'icon' => 'frm_icon_font frm_user2_icon',
),
'captcha' => array(
'name' => self::get_captcha_field_name(),
'icon' => 'frm_icon_font frm_shield_check_icon',
'icon' => 'frm_icon_font frm_shield_check2_icon',
),
'credit_card' => array(
'name' => __( 'Payment', 'formidable' ),
'icon' => 'frm_icon_font frm_credit_card_icon',
'icon' => 'frm_icon_font frm_credit_card2_icon',
),
FrmSubmitHelper::FIELD_TYPE => array(
'name' => __( 'Submit', 'formidable' ),
Expand Down Expand Up @@ -101,7 +101,7 @@ public static function pro_field_selection() {
$fields = array(
'file' => array(
'name' => __( 'File Upload', 'formidable' ),
'icon' => 'frm_icon_font frm_upload_icon',
'icon' => 'frm_icon_font frm_upload3_icon',
'message' => __( 'Add file uploads to save time and cut down on back-and-forth. Upgrade to Pro to get Upload fields and more.', 'formidable' ),
),
'ranking' => array(),
Expand All @@ -111,7 +111,7 @@ public static function pro_field_selection() {
),
'date' => array(
'name' => __( 'Date', 'formidable' ),
'icon' => 'frm_icon_font frm_calendar_icon',
'icon' => 'frm_icon_font frm_calendar2_icon',
),
'time' => array(
'name' => __( 'Time', 'formidable' ),
Expand All @@ -124,7 +124,7 @@ public static function pro_field_selection() {
),
'star' => array(
'name' => __( 'Star Rating', 'formidable' ),
'icon' => 'frm_icon_font frm_star_icon',
'icon' => 'frm_icon_font frm_star2_icon',
),
'range' => array(
'name' => __( 'Slider', 'formidable' ),
Expand All @@ -136,7 +136,7 @@ public static function pro_field_selection() {
),
'data' => array(
'name' => __( 'Dynamic', 'formidable' ),
'icon' => 'frm_icon_font frm_sitemap_icon',
'icon' => 'frm_icon_font frm_dynamic_icon',
'message' => __( 'Create relationships between multiple forms. You can link a member to a team, a rating to a product, a comment to a submission, and much more.', 'formidable' ),
),
'lookup' => array(
Expand All @@ -146,7 +146,7 @@ public static function pro_field_selection() {
),
'divider|repeat' => array(
'name' => __( 'Repeater', 'formidable' ),
'icon' => 'frm_icon_font frm_repeater_icon',
'icon' => 'frm_icon_font frm_refresh_icon',
'message' => esc_html__( 'Allow your visitors to add new sets of fields while filling out forms. Increase conversions while saving building time and server resources.', 'formidable' ) . ' <img src="' . esc_url( $images_url ) . 'repeatable-section_frontend.gif" alt="' . esc_attr__( 'Dynamically Add Form Fields with repeatable sections', 'formidable' ) . '" />',
),
'end_divider' => array(
Expand All @@ -164,7 +164,7 @@ public static function pro_field_selection() {
),
'form' => array(
'name' => __( 'Embed Form', 'formidable' ),
'icon' => 'frm_icon_font frm_file_text_icon',
'icon' => 'frm_icon_font frm_file_text2_icon',
),
'likert' => array(
'name' => __( 'Likert Scale', 'formidable' ),
Expand All @@ -178,11 +178,11 @@ public static function pro_field_selection() {
),
'password' => array(
'name' => __( 'Password', 'formidable' ),
'icon' => 'frm_icon_font frm_lock_open_icon',
'icon' => 'frm_icon_font frm_lock_closed2_icon',
),
'tag' => array(
'name' => __( 'Tags', 'formidable' ),
'icon' => 'frm_icon_font frm_price_tags_icon',
'icon' => 'frm_icon_font frm_price_tags2_icon',
),
// This is no longer a Pro field, but without this here, Pro triggers "undefined index" notices.
// Right now it leaves a gap. Maybe we can skip anything without a name or something.
Expand All @@ -192,11 +192,11 @@ public static function pro_field_selection() {
),
'address' => array(
'name' => __( 'Address', 'formidable' ),
'icon' => 'frm_icon_font frm_location_icon',
'icon' => 'frm_icon_font frm_location2_icon',
),
'summary' => array(
'name' => __( 'Summary', 'formidable' ),
'icon' => 'frm_icon_font frm_file_text_icon',
'icon' => 'frm_icon_font frm_file_text3_icon',
'message' => __( 'Allow visitors to review their responses before a form is submitted. Upgrade to Pro to get Summary fields and more.', 'formidable' ),
),
'signature' => array(
Expand All @@ -206,13 +206,13 @@ public static function pro_field_selection() {
),
'ai' => array(
'name' => __( 'AI', 'formidable' ),
'icon' => 'frm_icon_font frm_eye_icon frm_show_upgrade',
'icon' => 'frm_icon_font frm-ai-icon frm_show_upgrade',
'addon' => 'ai',
'message' => __( 'Streamline workflows and reclaim valuable time with the power of AI. You can effortlessly respond to your visitors in real-time with ChatGPT as your automated assistant. Upgrade to Pro and unlock AI-powered fields.', 'formidable' ),
),
'ssa-appointment' => array(
'name' => __( 'Appointment', 'formidable' ),
'icon' => 'frm_icon_font frm_calendar_icon frm_show_upgrade',
'icon' => 'frm_icon_font frm_schedule_icon frm_show_upgrade',
'require' => 'Simply Schedule Appointments',
'message' => sprintf(
/* translators: %1$s: Link opening HTML, %2$s: Link tag closing */
Expand All @@ -224,7 +224,7 @@ public static function pro_field_selection() {
),
'product' => array(
'name' => __( 'Product', 'formidable' ),
'icon' => 'frm_icon_font frm_product_icon',
'icon' => 'frm_icon_font frm_product2_icon',
'section' => 'pricing',
),
'quantity' => array(
Expand All @@ -234,7 +234,7 @@ public static function pro_field_selection() {
),
'total' => array(
'name' => __( 'Total', 'formidable' ),
'icon' => 'frm_icon_font frm_total_icon',
'icon' => 'frm_icon_font frm_total2_icon',
'section' => 'pricing',
),
);
Expand Down
19 changes: 10 additions & 9 deletions classes/models/fields/FrmFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,6 @@ protected function get_bulk_edit_string() {
return __( 'Bulk Edit Options', 'formidable' );
}

/**
* @since 4.04
*/
protected function get_add_option_string() {
return __( 'Add Option', 'formidable' );
}

/**
* @since 4.04
*/
Expand Down Expand Up @@ -639,7 +632,7 @@ protected function field_choices_heading( $args ) {
esc_html__( '%s Options', 'formidable' ),
esc_html( $all_field_types[ $args['display']['type'] ]['name'] )
);
FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown6_icon', array( 'aria-hidden' => 'true' ) );
FrmAppHelper::icon_by_class( 'frmfont frm_arrowdown8_icon frm_svg13', array( 'aria-hidden' => 'true' ) );
?>
</h3>
<?php
Expand Down Expand Up @@ -1206,7 +1199,7 @@ private function include_hidden_values_for_single_opt( $args, $opt ) {

return $hidden;
}

/**
* When the field is read only, does it need it include hidden fields?
* Checkboxes and dropdowns need this
Expand Down Expand Up @@ -1816,4 +1809,12 @@ protected function get_select_atributes( $values ) {
_deprecated_function( __METHOD__, '6.11.2', 'FrmFieldType::get_select_attributes' );
return $this->get_select_attributes( $values );
}

/**
* @since 4.04
* @deprecated x.x
*/
protected function get_add_option_string() {
return __( 'Add Option', 'formidable' );
}
}
13 changes: 8 additions & 5 deletions classes/views/frm-fields/back-end/default-value-setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
}
?>
<p
class="frm-has-modal frm-default-value-wrapper default-value-section-<?php echo esc_attr( $field['id'] . ( isset( $default_value_types['default_value']['current'] ) ? '' : ' frm_hidden' ) ); ?>"
<?php $field_obj->echo_field_default_setting_attributes( $field ); ?>
id="default-value-for-<?php echo esc_attr( $field['id'] ); ?>">
<label for="frm_default_value_<?php echo esc_attr( $field['id'] ); ?>">
<?php esc_html_e( 'Default Value', 'formidable' ); ?>
class="frm-has-modal frm-default-value-wrapper default-value-section-<?php echo esc_attr( $field['id'] ); ?>"
<?php $field_obj->echo_field_default_setting_attributes( $field ); ?>
id="default-value-for-<?php echo esc_attr( $field['id'] ); ?>"
>
<label class="frm-flex! frm-gap-xs frm-items-center" for="frm_default_value_<?php echo esc_attr( $field['id'] ); ?>">
<span><?php esc_html_e( 'Default Value', 'formidable' ); ?></span>
<?php FrmAppHelper::tooltip_icon( __( 'TODO: Add a tooltip', 'formidable' ), array( 'class' => 'frm-flex' ) ); ?>
</label>

<span class="frm-with-right-icon">
<?php
$field_obj->display_smart_values_modal_trigger_icon( $field );
Expand Down
Loading