OS Property support center

SOLVED !!! Mandatory address field

More
9 years 10 months ago #65301 by Mr. Dam
Replied by Mr. Dam on topic SOLVED !!! Mandatory address field
Hi,
To remove Required status of Address field in Agent registration form, please follow these steps
1. Open file: components > com_osproperty > helpers > layouts > agentregistration.php
2. Find
Code:
if(address.value == ""){ alert("<?php echo JText::_('OS_PLEASE_ENTER_ADDRESS')?>"); address.focus(); return false; }else if(captcha_agent_register.value == 1){

and change to
Code:
if(captcha_agent_register.value == 1){

Thanks
Dam

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

More
9 years 10 months ago #65338 by Nina M
Replied by Nina M on topic SOLVED !!! Mandatory address field
That didn't help. It is still requiring the address field be filled in.

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

More
9 years 10 months ago #65339 by Mr. Dam
Replied by Mr. Dam on topic SOLVED !!! Mandatory address field
Hi Nina,
Please submit ticket and send your site information with super admin account so i can check the issue for you
Thanks
Dam

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

More
9 years 10 months ago #65384 by Nina M
Replied by Nina M on topic SOLVED !!! Mandatory address field
I figured it out myself. You have to remove another bit of code related to the address near the end of the same file. Unfortunately it seems the system won't allow me to put the code in here but it is fairly obvious to see so hopefully that will help anyone who has the same problem in future.

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

More
9 years 10 months ago #65385 by Mr. Dam
Replied by Mr. Dam on topic SOLVED !!! Mandatory address field
Hi Nina,
Thank you for your news.
Sincerely,
Dam

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

Moderators: Mr. DamNguyen Phu Quan