Warning while creating custom icon form

About this forum
These forums have not been active for several years. They're available for search and reference, but a lot of this information is likely out of date.

For current information, try visiting our Knowledge Base.

Home / Support / Custom Module Development / Warning while creating custom icon form

This topic is: resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #104141

    pc
    Participant

    Hi,

    I am creating a custom module named 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/

    Is there anything I am missing?

    #104142

    pc
    Participant
    This reply has been marked as private.
    #104190

    Ben Carlo
    Keymaster

    Hey Pratik,

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

    Ben

    #104232

    Justin Busa
    Keymaster

    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

    #104546

    pc
    Participant
    This reply has been marked as private.
    #104746

    Justin Busa
    Keymaster

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

    Justin

    #104753

    Justin Busa
    Keymaster

    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

    #104823

    pc
    Participant

    Thank you Justin!

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘Custom Module Development’ is closed to new topics and replies.