# Url attribute gives error when creating listing

**URL:** <https://community.hivepress.io/t/url-attribute-gives-error-when-creating-listing/1732>\
**Category:** HivePress\
**Created:** [September 9, 2022, 9:27am UTC](https://community.hivepress.io/t/url-attribute-gives-error-when-creating-listing/1732 "2022-09-09T09:27:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruben](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@Ruben](https://community.hivepress.io/u/Ruben)\
**Post date:** [September 9, 2022, 9:27am UTC](https://community.hivepress.io/t/url-attribute-gives-error-when-creating-listing/1732/1 "2022-09-09T09:27:34Z")

</div>

Hi all,

One of the optional attributes I would like my vendors to fill in when they create a listing is their website.  
When I created this attribute I selected “URL” as “Field type”.  
When I tested creating a listing today this field of the form keeps giving an error. (see image)  
How can I fix this?

 ![Screenshot url](https://community.hivepress.io/uploads/default/original/2X/f/f652420ea97eb4a61ab2a39345d3843ab5f9d202.png)

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [September 9, 2022, 1:26pm UTC](https://community.hivepress.io/t/url-attribute-gives-error-when-creating-listing/1732/3 "2022-09-09T13:26:00Z")

</div>

Hi,  
Currently these fields are validated by the browser and browsers require URLs to start with `http://` or `https://`. The browser should definitely indicate this, but we don’t have control over the native browser validation messages.

---

<div class="post-metadata">

**Author:** ![Ruben](https://community.hivepress.io/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@Ruben](https://community.hivepress.io/u/Ruben)\
**Post date:** [September 9, 2022, 1:36pm UTC](https://community.hivepress.io/t/url-attribute-gives-error-when-creating-listing/1732/4 "2022-09-09T13:36:08Z")

</div>

Wow, that I didn’t think of that…  
Thank you very much!

---

<div class="post-metadata">

**Author:** ![Adams](https://community.hivepress.io/user_avatar/community.hivepress.io/adams/32/1338_2.png) [@Adams](https://community.hivepress.io/u/Adams)\
**Post date:** [September 20, 2022, 11:10am UTC](https://community.hivepress.io/t/url-attribute-gives-error-when-creating-listing/1732/5 "2022-09-20T11:10:45Z")

</div>

You can also select some Display Areas for this website url attribute if you want to show it on the listing page or inside the listing block. You can also set this Display Format:

```auto
<a href="%value%" target="_blank">Visit Our Website Link</a> 

```

I’ve set the target attribute to “\_blank”, the link will open in a new browser window or a new tab.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [October 20, 2022, 11:11am UTC](https://community.hivepress.io/t/url-attribute-gives-error-when-creating-listing/1732/6 "2022-10-20T11:11:45Z")

</div>

Closed on October 20, 2022, 11:11am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
