+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Show/Hide field in dependence of another field value (add listing form)

  1. #11
    As far as I can see it can be used, I have the intention that when he chooses the rent, additional information appears that cannot be combined in the sale, for example, deposit, Minimum lease, Payment period, Ready to move in immediately, Pets?

  2. #12
    Quote Originally Posted by Srdjan Petrovic View Post
    As far as I can see it can be used, I have the intention that when he chooses the rent, additional information appears that cannot be combined in the sale, for example, deposit, Minimum lease, Payment period, Ready to move in immediately, Pets?
    That makes sense, for different groups with different fields is very nice.

  3. #13
    It is also a good option in case - I am selling/giving away
    where you can hide the price field

  4. #14
    Junior Member
    Join Date
    Mar 2024
    Posts
    11
    Quote Originally Posted by Rudi View Post
    Hello Alexey,

    it should be modified through the code

    Go to ftp > ... > templates > your template > js > lib.js > find a function "this.realtyPropType"
    you can add your own logic here meaning action 'hide/show' between radio values

    or use this function on the page you need, for example, add-listing form:

    go to your template > controllers > add_listing > add_listing.tpl > use at the bottom this code:

    Code:
    Only registered members can view the code.
    examples:

    <radio_field_selector> - 'div.search-item span.custom-input input[name="f[sale_rent]"]'
    <target_selector> - 'div.search-item span.custom-input input[name="f[time_frame]"]'
    <parent_class> - '.search-item'
    Hi Rudy,

    Can you please help me doing same thing on the auto classified ads?
    When a user click on condition "used" it shows up the km listing field and when "new" is chosen, the km field is hidden.

    Thanks!

  5. #15
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,160
    Hello Erez,

    You need to create a ticket and will quote the customization

    Thanks

+ Reply to Thread