OS Property support center

SOLVED !!! Mandatory address field

  • Dragan
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
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.
Code:
// $require_field .= "address,"; // $require_label .= JText::_('OS_ADDRESS').",";
What else needs to be done to not have the address as a mandatory field?

Thanks,
Dragan
Last edit: 10 years 2 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

More
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.

More
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

Please Log in or Create an account to join the conversation.

More
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.

More
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

Please Log in or Create an account to join the conversation.

More
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.

More
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

Please Log in or Create an account to join the conversation.

More
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.
The following user(s) said Thank You: Mr. Dam, Sytars

Please Log in or Create an account to join the conversation.

More
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?
The following user(s) said Thank You: Sytars

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan