Public Ticket #3516926

Placeholder text for File upload field

Closed
Comments
2 Tickets 1
Majd Azar started the conversation 3 years ago on November 7, 2023 at 3:33pm

Hello,

The "placeholder" text for the file field is not displaying.

I would like to use this text as a description to explain what type of file and why users or businesses need to upload the file before registering.

2,762
KingsPlugins replied 3 years ago on November 8, 2023 at 2:29am

Hi there,

Thank you for purchasing our plugin,

For file upload fields, the placeholder value does not display.

However, you can add some extra information by adding this PHP code snippet to your site:

add_action('b2bking_after_supported_types', function($field_id){
    if ($field_id == 1234){
        ?>
        <br>
        Extra information about this field here...
        <?php
    }
}, 10, 1);

You would need to replace 1234 with the ID of your registration field. To get the ID of a field, go to B2BKing -> Registration Fields, click on the field and check the number in the URL.

For example here the URL has ?post=1460, therefore the ID is 1460.

5845506394.png

After adding the above code snippet,  the text would show as follows:

8346872428.png

We can also hide the "supported file types" text if you'd like.

A PHP snippet can be added to functions.php, or by following our guide here: https://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

Kind regards,

Stefan

Sign In