# How to set up Address and Contact Rules

**URL:** <https://www.dolibarr.org/forum/t/how-to-set-up-address-and-contact-rules/27980>\
**Category:** HR modules\
**Tags:** Help\
**Created:** [August 22, 2024, 8:19am UTC](https://www.dolibarr.org/forum/t/how-to-set-up-address-and-contact-rules/27980 "2024-08-22T08:19:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dolfine](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/a88e4f/32.png) [@Dolfine](https://www.dolibarr.org/forum/u/Dolfine)\
**Post date:** [August 22, 2024, 8:19am UTC](https://www.dolibarr.org/forum/t/how-to-set-up-address-and-contact-rules/27980/1 "2024-08-22T08:19:45Z")

</div>

Hello,

How can I make it mandatory for users to enter customer details, including the address and phone number, before they can proceed to create a third party? I have successfully made the email address mandatory, but the address and phone number fields are still not mandatory. I would appreciate any advice on how to enable these requirements.

---

<div class="post-metadata">

**Author:** ![sonikf](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sonikf](https://www.dolibarr.org/forum/u/sonikf)\
**Post date:** [August 22, 2024, 9:48am UTC](https://www.dolibarr.org/forum/t/how-to-set-up-address-and-contact-rules/27980/2 "2024-08-22T09:48:57Z")

</div>

Hi @Dolfine  
You have to create entries in Home-\>Setup-\>Default values/filters/sorting Mandatory form fields tab

for phone enter  
societe/card.php?action=create and phone in the respective fields

for address enter  
societe/card.php?action=create and address

---

<div class="post-metadata">

**Author:** ![Dolfine](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/a88e4f/32.png) [@Dolfine](https://www.dolibarr.org/forum/u/Dolfine)\
**Post date:** [August 22, 2024, 10:21am UTC](https://www.dolibarr.org/forum/t/how-to-set-up-address-and-contact-rules/27980/3 "2024-08-22T10:21:23Z")

</div>

> [@sonikf](#):
>
> societe/card.php?action=create and address

@sonikf Thank you.  
Should i put it all as below?  
societe/card.php?action=create and address

---

<div class="post-metadata">

**Author:** ![sonikf](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sonikf](https://www.dolibarr.org/forum/u/sonikf)\
**Post date:** [August 22, 2024, 10:52am UTC](https://www.dolibarr.org/forum/t/how-to-set-up-address-and-contact-rules/27980/4 "2024-08-22T10:52:54Z")

</div>

> [@Dolfine](#):
>
> Should i put it all as below?

What do you mean by all?  
For third party yes societe/card.php?action=create or societe/card.php?action=edit if you also need this on edit

 ![2024-08-22_13-50](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/3/36235e94ddc98d0daf21682de03e2033ed4375c1.png)

---

<div class="post-metadata">

**Author:** ![Dolfine](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/a88e4f/32.png) [@Dolfine](https://www.dolibarr.org/forum/u/Dolfine)\
**Post date:** [August 22, 2024, 12:09pm UTC](https://www.dolibarr.org/forum/t/how-to-set-up-address-and-contact-rules/27980/5 "2024-08-22T12:09:57Z")

</div>

@sonikf Thank you

and is there a way to hide some fields in the third party module?

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/8/81533503d4655bfdcc4c7eb4690ea699816cf917.png)

---

<div class="post-metadata">

**Author:** ![sonikf](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sonikf](https://www.dolibarr.org/forum/u/sonikf)\
**Post date:** [August 22, 2024, 3:27pm UTC](https://www.dolibarr.org/forum/t/how-to-set-up-address-and-contact-rules/27980/6 "2024-08-22T15:27:55Z")

</div>

> [@Dolfine](#):
>
> and is there a way to hide some fields in the third party module?

You can globally hide the input fields using css but not the labels by going to Home → Setup → Display → CSS Style

> #idprof1, #idprof2, #idprof3, #idprof4, #idprof5, #idprof6 {  
> display: none;  
> }
