- Posts: 28
- Thank you received: 0
OS Property support center
Requiered picture title
- Davor
- Topic Author
- Offline
- Junior Member
-
Less
More
10 years 5 months ago #53060
by Davor
Requiered picture title was created by Davor
When users add pictures of properties in the front-end I would like to make the Picture title field required. How can I do this?
Thank you
Thank you
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13057
- Thank you received: 1696
10 years 5 months ago #53097
by Mr. Dam
Replied by Mr. Dam on topic Requiered picture title
Hi,
You can make the modification on JS function to make the picture title field is required in file:
components > com_osproperty > classes > listing.hml.php
php function editListing
JS function : submitftForm (line 3098)
Solution: before submitting form "form.submit();" you need to check if the new picture is uploaded (yes/no) and if the answer is Yes, you can check the description of picture is entered (yes/no). If answer is no. you can return "false" and show alert to force the agent to enter the title.
Good luck
Dam
You can make the modification on JS function to make the picture title field is required in file:
components > com_osproperty > classes > listing.hml.php
php function editListing
JS function : submitftForm (line 3098)
Solution: before submitting form "form.submit();" you need to check if the new picture is uploaded (yes/no) and if the answer is Yes, you can check the description of picture is entered (yes/no). If answer is no. you can return "false" and show alert to force the agent to enter the title.
Good luck
Dam
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.