Prevent links from being inserted in the free text field

This topic contains 6 replies, has 3 voices, and was last updated by  Naveen Giri 4 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #531639

    Andreas
    Expired Member
    Post count: 43

    Hi,

    is it possible to prevent links from being inserted in the free text field (on the page: add an entry)?
    In Germany you are liable for external links.

    Best regards
    Andreas

    #531656

    Kor
    Moderator
    Post count: 16516

    Hi Andreas,

    Thanks for your post. There isn’t an option out of the box, unfortunately. But I’ll get a developer for a second look.

    #532165

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Andreas,

    are you talking custom field text? I havn’t seen any such behaviour on local.
    Text field values are already sanitize, so it should escape html tags by default.

    Could you please elaborate it more with some screenshot. site details with FTP will be helpful too. Please share them in private reply.

    Thanks
    Naveen

    #532566

    Andreas
    Expired Member
    Post count: 43
    This reply has been marked as private.
    #532778

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Andreas,

    Please use this as a validation pattern for text field.

     ([A-z0-9À-ž\s]){2,} 

    It should fulfill your requirements.

    Thanks

    #533557

    Andreas
    Expired Member
    Post count: 43

    Hi Naveen,

    thanks for your reply.
    I use the Textarea for Post Description and there are no validation pattern field. (see my screenshot)

    Best regards
    Andreas

    #533716

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Andreas,

    Unfortunatly html5 validation pattern not work for textareas.
    It could be done with the help of js, but its a customisation request. out of support scope.

    So you can take help of our GD Experts https://geodirectoryexperts.com/

    Thanks

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount