Support » Plugins and Hacks » [Resolved] URL not mandatory

[Resolved] URL not mandatory

  • Hi. Is it possible to add URL-field so that it not mandatory to be filled.

    I tried editing submission-form.php:

    <input name="user-submitted-url" type="text" value="" data-required="true" data-type="url" placeholder="<?php _e('Your URL', 'usp'); ?>" class="usp-input">
    <input name="user-submitted-url" type="text" value="" data-required="false" data-type="url" placeholder="<?php _e('Your URL', 'usp'); ?>" class="usp-input">

    But it still seems to be mandatory


Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello Turskis,

    it’s just simple. Please select the “Hide” option for “Post Url” field In your User Submitted posts settings page. 🙂

    Plugin Author Jeff Starr


    free2khaja, yes 🙂

    Also, there will soon be a Pro version of the plugin that will include options to make any displayed field either optional or mandatory.

    in Pro version 🙂

    Thank You

    Thanks for the replies. I wanted to make URL visible but not mandatory. But ok, let’s wait for Pro version then

    Okay Turskis, 🙂

    You change the data-required=”false” from data-required=”true” .

    Now Please remove the data-required=”false” from your code.

    I’m not tested, but I hope It’s work.

    Thank You

    I mean just use the code

    <input name="user-submitted-url" type="text" value="" data-type="url" placeholder="<?php _e('Your URL', 'usp'); ?>" class="usp-input">

    I’m sure it will work.

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    It works! Many thanks

    You are Welcome Mr.Turskis 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] URL not mandatory’ is closed to new replies.