- Posts: 106
- Thank you received: 1
OS Property support center
SOLVED - make 'Property Type' a required field ?
- kalesh.suby
- Topic Author
- Offline
- Premium Member
-
Less
More
12 years 7 months ago - 12 years 7 months ago #18481
by kalesh.suby
SOLVED - make 'Property Type' a required field ? was created by kalesh.suby
Helo,
How to make Property Type under General info tab a required field ?
How to make Property Type under General info tab a required field ?
Last edit: 12 years 7 months ago by kalesh.suby.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 7 months ago #18483
by Mr. Dam
Replied by Mr. Dam on topic Re: How to make 'Property Type' a required field ?
I am not sure you want to make the field "Property type" is mandatory in the frontend or backend.
From frontend :
Please open classes > listing.html.php
Function : function editListing($option,$row,$lists,$amenities,$amenitylists,$groups,$configs,$neighborhoods)
Find this code
<tr>
<td class="key">
<span class="hasTip" title="<?php echo JText::_('OS_PROPERTY_TYPE');?>::<?php echo JText::_('OS_PROPERTY_TYPE_EXPLAIN');?>">
<?php echo JText::_('OS_PROPERTY_TYPE')?>
</span>
</td>
<td>
<?php echo $lists; ?>
</td>
</tr>
And replace by
<tr>
<td class="key">
<span class="hasTip" title="<?php echo JText::_('OS_PROPERTY_TYPE');?>::<?php echo JText::_('OS_PROPERTY_TYPE_EXPLAIN');?>">
<?php echo JText::_('OS_PROPERTY_TYPE')?>
</span>
</td>
<td>
<?php echo $lists; ?><span class="required">(*)</span>
<?php
$require_field .= "pro_type,";
$require_label .= JText::_('OS_PROPERTY_TYPE').",";
?>
</td>
</tr>
Backend
file : classes > property.html.php
Function : editProperty($option,$row,$lists,$amenities,$amenitylists,$groups,$neighborhoods)
Find the code
<tr>
<td class="key">
<?php echo JText::_('OS_PROPERTY_TYPE')?>
</td>
<td>
<?php echo $lists; ?>
</td>
</td>
</tr>
And replace by
<tr>
<td class="key">
<?php echo JText::_('OS_PROPERTY_TYPE')?>
</td>
<td>
<?php echo $lists; ?><span class="required">(*)</span>
<?php
$require_field .= "pro_type,";
$require_label .= JText::_('OS_PROPERTY_TYPE').",";
?>
</td>
</td>
</tr>
Good luck!
Dam
From frontend :
Please open classes > listing.html.php
Function : function editListing($option,$row,$lists,$amenities,$amenitylists,$groups,$configs,$neighborhoods)
Find this code
<tr>
<td class="key">
<span class="hasTip" title="<?php echo JText::_('OS_PROPERTY_TYPE');?>::<?php echo JText::_('OS_PROPERTY_TYPE_EXPLAIN');?>">
<?php echo JText::_('OS_PROPERTY_TYPE')?>
</span>
</td>
<td>
<?php echo $lists; ?>
</td>
</tr>
And replace by
<tr>
<td class="key">
<span class="hasTip" title="<?php echo JText::_('OS_PROPERTY_TYPE');?>::<?php echo JText::_('OS_PROPERTY_TYPE_EXPLAIN');?>">
<?php echo JText::_('OS_PROPERTY_TYPE')?>
</span>
</td>
<td>
<?php echo $lists; ?><span class="required">(*)</span>
<?php
$require_field .= "pro_type,";
$require_label .= JText::_('OS_PROPERTY_TYPE').",";
?>
</td>
</tr>
Backend
file : classes > property.html.php
Function : editProperty($option,$row,$lists,$amenities,$amenitylists,$groups,$neighborhoods)
Find the code
<tr>
<td class="key">
<?php echo JText::_('OS_PROPERTY_TYPE')?>
</td>
<td>
<?php echo $lists; ?>
</td>
</td>
</tr>
And replace by
<tr>
<td class="key">
<?php echo JText::_('OS_PROPERTY_TYPE')?>
</td>
<td>
<?php echo $lists; ?><span class="required">(*)</span>
<?php
$require_field .= "pro_type,";
$require_label .= JText::_('OS_PROPERTY_TYPE').",";
?>
</td>
</td>
</tr>
Good luck!
Dam
Please Log in or Create an account to join the conversation.
- kalesh.suby
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 1
12 years 7 months ago #18486
by kalesh.suby
Replied by kalesh.suby on topic Re: How to make 'Property Type' a required field ?
Hi Dam,
Obviously I want to make it required in front end when adding a property. This is why I said in general Info Tab.
Thanks for the reply - I will try it out.
Thanks
Obviously I want to make it required in front end when adding a property. This is why I said in general Info Tab.
Thanks for the reply - I will try it out.
Thanks
Please Log in or Create an account to join the conversation.
- kalesh.suby
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 106
- Thank you received: 1
12 years 7 months ago #18491
by kalesh.suby
Replied by kalesh.suby on topic SOLVED - make 'Property Type' a required field ?
SOLVED. Thanks
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
12 years 7 months ago #18551
by Mr. Dam
Replied by Mr. Dam on topic Re: SOLVED - make 'Property Type' a required field ?
OK
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.