Forbid URLs in listing description

This topic contains 7 replies, has 4 voices, and was last updated by  Guust 7 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #189730

    oldmankit
    Buyer
    Post count: 116

    Is there a way to validate the information someone submits as part of their listing?

    I would like businesses to enter their URL in the web address field only. If they try to put a URL into the listing description, I would like it to show a notification that this is not allowed. (Similar to the warning they get if they didn’t complete a mandatory field.)

    #189804

    wasanajones
    Buyer
    Post count: 180

    following

    #190086

    Paolo
    Site Admin
    Post count: 31206

    That would be feasible with jQuery. An exmaple: http://stackoverflow.com/questions/16598720/prevent-links-in-html-form-fields

    You can also add your custom error message again with jquery where we normal add our mandatory field error message.

    This would be considered a customization though.

    Thanks

    #190582

    oldmankit
    Buyer
    Post count: 116

    Thanks very much for pointing me in the right direction, Paolo.

    #190617

    oldmankit
    Buyer
    Post count: 116

    At the moment I can’t even find a way to ask business owners not to put a URL in the description box. This particular field doesn’t appear to have a ‘description/instructions’ field which I can translate and customise : (

    If that’s not clear, the way I customsed the following text “Tags are short keywords, with no space within.(eg: tag1, tag2, tag3) Up to 40 characters only.” was to translate it. But I can’t see a field to work with for the business description box.

    #190796

    Guust
    Moderator
    Post count: 29970

    Because the title and description are default WP parts, there is indeed no description for them.
    You can add some text to the title maybe using translation? Like

    Listing Description <br/><span class="small">Do not use URLs.</span>
    #191907

    oldmankit
    Buyer
    Post count: 116

    Ah, OK. Thank you for the workaround : )

    #191969

    Guust
    Moderator
    Post count: 29970

    You’re welcome 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket