- Posts: 20
- Thank you received: 0
OS Property support center
SOLVED !!! Mandatory address field
- Dragan
- Topic Author
- Offline
- Junior Member
-
Less
More
10 years 4 months ago - 10 years 2 months ago #54579
by Dragan
SOLVED !!! Mandatory address field was created by Dragan
Hi,
I tried to make the address field not mandatory in the back end by commenting out these code in /components/com_osproperty/helpers/layouts/propertyedit.php but it's still mandatory and I can't save it without it.
What else needs to be done to not have the address as a mandatory field?
Thanks,
Dragan
I tried to make the address field not mandatory in the back end by commenting out these code in /components/com_osproperty/helpers/layouts/propertyedit.php but it's still mandatory and I can't save it without it.
Code:
// $require_field .= "address,";
// $require_label .= JText::_('OS_ADDRESS').",";
Thanks,
Dragan
Last edit: 10 years 2 months ago by Mr. Dam.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 4 months ago #54583
by Mr. Dam
Replied by Mr. Dam on topic Mandatory address field
Hi,
it's very weird, can you please submit ticket and send your site information with super admin acc. I will check it for you
Thanks
Dam
it's very weird, can you please submit ticket and send your site information with super admin acc. I will check it for you
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Nina M
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
10 years 2 months ago #58442
by Nina M
Replied by Nina M on topic Mandatory address field
I would also like to make the address field not be mandatory and I tried what Dragan suggested with the same results. I am sure that it is not only the 2 of us who would like to be able to do this so if you could please explain here in the forum all of the steps involved in making the address field not mandatory it would be very helpful.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 2 months ago #58489
by Mr. Dam
Replied by Mr. Dam on topic Mandatory address field
Hi Nina,
Can you please submit ticket and send your site information with super admin acc, ftp acc. I will check the issue for you
Thanks
Dam
Can you please submit ticket and send your site information with super admin acc, ftp acc. I will check the issue for you
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Nina M
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
10 years 2 months ago #58515
by Nina M
Replied by Nina M on topic Mandatory address field
It would be much better if you could explain in the forum how to make this change so that anyone who wants to do this doesn't have to give you access to their admin and ftp and then we hear no more about it in the forum. I doubt this is an issue specific to my (and Dragan's) installation. Isn't it possible for you to do this?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 2 months ago #58531
by Mr. Dam
Replied by Mr. Dam on topic Mandatory address field
Hi Nina,
I can't explain clearer, because all you need is implementing the modification i listed above.
Thanks
Dam
I can't explain clearer, because all you need is implementing the modification i listed above.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Nina M
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 4
10 years 2 months ago #58588
by Nina M
Replied by Nina M on topic Mandatory address field
Okay. I will submit a support ticket.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 2 months ago #58589
by Mr. Dam
Replied by Mr. Dam on topic Mandatory address field
Ok, my staff will check it soon.
Thanks
Dam
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Nina M
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 4
10 years 2 months ago #58649
by Nina M
Replied by Nina M on topic Mandatory address field
In order help others who may want to make the address a non-mandatory field I am letting everyone know that it turns out not only do you have to comment out the two lines in components/com_osproperty/helpers/layouts/propertyedit.php but you also have to comment out those same lines in administrator/components/com_osproperty/classes/property.html.php.
Here are the lines commented out:
// $require_field .= "address,";
// $require_label .= JText::_('OS_ADDRESS').",";
You will also want to comment out or remove the * and (*) respectively a couple lines above those lines so that it doesn't still look like the field is mandatory.
Here are the lines commented out:
// $require_field .= "address,";
// $require_label .= JText::_('OS_ADDRESS').",";
You will also want to comment out or remove the * and (*) respectively a couple lines above those lines so that it doesn't still look like the field is mandatory.
The following user(s) said Thank You: Mr. Dam, Sytars
Please Log in or Create an account to join the conversation.
- Nina M
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 4
9 years 10 months ago #65276
by Nina M
Replied by Nina M on topic SOLVED !!! Mandatory address field
I have just discovered that the agent registration also has the address as a mandatory field. Since the way to remove the required fields on the properties was to comment out lines in components/com_osproperty/helpers/layouts/propertyedit.php I thought that I would find the same thing to be true in components/com_osproperty/helpers/layouts/agentregistration.php but that is not the case.
Can you please tell me where I can remove the mandatory address field in agent registration?
Can you please tell me where I can remove the mandatory address field in agent registration?
The following user(s) said Thank You: Sytars
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.