# Warning while creating custom icon form

**URL:** <https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444>\
**Category:** Developers\
**Created:** [March 3, 2016, 4:37am UTC](https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444 "2016-03-03T04:37:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pc1](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/pc1/32/793_2.png) [@pc1](https://community.wpbeaverbuilder.com/u/pc1)\
**Post date:** [March 3, 2016, 4:37am UTC](https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444/1 "2016-03-03T04:37:52Z")

</div>

Hi,

I am creating a custom module named Flip Box ( [https://ultimate.brainstormforce.com/flip-box/](https://ultimate.brainstormforce.com/flip-box/) ), for which I need your default icon set. I have created a icon field using  
FLBuilder::register\_settings\_form( ‘icon\_form\_field’, array( /_entire array_/ ) );

This has all the fields from your Icon module plus few extra fields that I needed. The icon field is not mandatory to be selected, thus when I do not select the icon for the flip-box it shows me a warning. Refer - [http://vrunda.sharkz.in/bb-flip-box/](http://vrunda.sharkz.in/bb-flip-box/)

Is there anything I am missing?

---

<div class="post-metadata">

**Author:** ![pc1](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/pc1/32/793_2.png) [@pc1](https://community.wpbeaverbuilder.com/u/pc1)\
**Post date:** [March 3, 2016, 4:38am UTC](https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444/2 "2016-03-03T04:38:28Z")

</div>

[Content Hidden]

---

<div class="post-metadata">

**Author:** ![bencarlo](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/bencarlo/32/287_2.png) [@bencarlo](https://community.wpbeaverbuilder.com/u/bencarlo)\
**Post date:** [March 3, 2016, 7:46am UTC](https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444/3 "2016-03-03T07:46:35Z")

</div>

Hey Pratik,

I’ve already assigned another member of the team to assist you.

Ben

---

<div class="post-metadata">

**Author:** ![justin](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/justin/32/16_2.png) [@justin](https://community.wpbeaverbuilder.com/u/justin)\
**Post date:** [March 3, 2016, 9:49am UTC](https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444/4 "2016-03-03T09:49:11Z")

</div>

Hey PC,

I’ve reviewed the error and the code where it’s happening but I’m not sure what’s going on. Would it be possible to get a copy of your module, or temporary FTP access to your site to test?

Thanks,  
Justin

---

<div class="post-metadata">

**Author:** ![pc1](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/pc1/32/793_2.png) [@pc1](https://community.wpbeaverbuilder.com/u/pc1)\
**Post date:** [March 3, 2016, 8:37pm UTC](https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444/5 "2016-03-03T20:37:45Z")

</div>

[Content Hidden]

---

<div class="post-metadata">

**Author:** ![justin](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/justin/32/16_2.png) [@justin](https://community.wpbeaverbuilder.com/u/justin)\
**Post date:** [March 4, 2016, 2:07pm UTC](https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444/6 "2016-03-04T14:07:20Z")

</div>

Thanks, PC! I’m checking this out now.

Justin

---

<div class="post-metadata">

**Author:** ![justin](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/justin/32/16_2.png) [@justin](https://community.wpbeaverbuilder.com/u/justin)\
**Post date:** [March 4, 2016, 2:50pm UTC](https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444/7 "2016-03-04T14:50:56Z")

</div>

Hi PC,

I found and fixed the bug and will get that out in the next release. For now, you can change line 331 of class-fl-builder-icons.php from this…

`if ( $field['type'] == 'icon' ) {`

to this…

`if ( $field['type'] == 'icon' && ! empty( $module->settings->$setting ) ) {`

Justin

---

<div class="post-metadata">

**Author:** ![pc1](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/pc1/32/793_2.png) [@pc1](https://community.wpbeaverbuilder.com/u/pc1)\
**Post date:** [March 4, 2016, 8:46pm UTC](https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444/8 "2016-03-04T20:46:07Z")

</div>

Thank you Justin!

---

<div class="post-metadata">

**Author:** ![system](https://community.wpbeaverbuilder.com/uploads/default/original/2X/9/9db1b183a7ea1efa26199a2a2b3511d742473dae.png) [@system](https://community.wpbeaverbuilder.com/u/system)\
**Post date:** [April 27, 2019, 10:22pm UTC](https://community.wpbeaverbuilder.com/t/warning-while-creating-custom-icon-form/7444/9 "2019-04-27T22:22:45Z")

</div>

Closed on April 27, 2019, 10:22pm UTC


