Title: Optional fields
Last modified: September 14, 2023

---

# Optional fields

 *  Resolved [Unknown](https://wordpress.org/support/users/unknownman888/)
 * (@unknownman888)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/optional-fields-4/)
 * I have optional fields hidden behind a link button. Is it possible to keep the
   order notes field shown while optional?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Diego Versiani](https://wordpress.org/support/users/diegoversiani/)
 * (@diegoversiani)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/optional-fields-4/#post-17061659)
 * Hi [@unknownman888](https://wordpress.org/support/users/unknownman888/),
 * Yes, you can use the code snippet below to skip hiding some optional fields, 
   including the order notes field:
 *     ```wp-block-code
       /**
        * Skip hiding optional fields with the "+ add" buttons.
        */
       function fluidcheckout_add_optional_fields_skip_list( $skip_list ) {
       	// $skip_list[] = 'field_id';
       	$skip_list[] = 'order_comments';
       	return $skip_list;
       }
       add_filter( 'fc_hide_optional_fields_skip_list', 'fluidcheckout_add_optional_fields_skip_list', 10 );
       ```
   
 * If you are unsure about how to add the code snippet to your website, check our
   article:
   [How to safely add code snippets to your WooCommerce website](https://fluidcheckout.com/docs/how-to-add-code-snippets/)
 * I’m closing this ticket for now. If you need further assistance related to this
   issue, simply reply to this message to re-open it.
 * Best,
   Diego.
 *  Thread Starter [Unknown](https://wordpress.org/support/users/unknownman888/)
 * (@unknownman888)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/optional-fields-4/#post-17106692)
 * Hi, thanks for the code it worked. Could you please tell me how I can add more
   fields to the code?
 *  Plugin Author [Diego Versiani](https://wordpress.org/support/users/diegoversiani/)
 * (@diegoversiani)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/optional-fields-4/#post-17109042)
 * Hi [@unknownman888](https://wordpress.org/support/users/unknownman888/),
 * Just add more lines such as `$skip_list[] = 'order_comments';` before the final
   line `return $skip_list;`.
 * There is an example commented out in the code already.
 * Best,
   Diego.
 *  Thread Starter [Unknown](https://wordpress.org/support/users/unknownman888/)
 * (@unknownman888)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/optional-fields-4/#post-17109051)
 * Helpful, thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Optional fields’ is closed to new replies.

 * ![](https://ps.w.org/fluid-checkout/assets/icon-256x256.png?rev=3492947)
 * [Fluid Checkout for WooCommerce - Lite](https://wordpress.org/plugins/fluid-checkout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fluid-checkout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fluid-checkout/)
 * [Active Topics](https://wordpress.org/support/plugin/fluid-checkout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fluid-checkout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fluid-checkout/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Unknown](https://wordpress.org/support/users/unknownman888/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/optional-fields-4/#post-17109051)
 * Status: resolved