+ Reply to Thread
Results 1 to 6 of 6

Thread: Conditional fields settings

  1. #1

    Conditional fields settings

    I saw in gerneral wide template a new field (Rent time frame) appears once you pick "Rent" for the field (Property for).

    i checked the backend and I couldn't figure out how I can implement this feature.

    How can I make a conditional field ?!

  2. #2
    i wrote my own script for this.

  3. #3
    i want to learn this trick also but it look like hard code part and I'm not good at coding. This feature should be consider in new version as it will shorten the post new listing page. Since only the part that they want to field in is showed. Other will be hidden until clicked.

  4. #4
    Quote Originally Posted by Wei Hong View Post
    i want to learn this trick also but it look like hard code part and I'm not good at coding. This feature should be consider in new version as it will shorten the post new listing page. Since only the part that they want to field in is showed. Other will be hidden until clicked.
    Agree with Wei Hong! This is going to be very useful for us.

  5. #5
    example Sale - Rent field (submitform)


    Code:
    Only registered members can view the code.
    replace keyesample1 with the key from the field you desire to hide or pop up

    This code i put in the end of the <template>/js/lib.js file but i think there is a way to put it from the adminpanel direct, i saw something but i didnt test it

    for more specific solution write back what you need.

    Example: when i click this ... that should happend..

    if i can i will help you guys out

  6. #6
    BTW this like solution to integrete in the script is to much work !

    to many possible sitiuations.

    you got radio text dropdown .... every fieldtype has its own handling. what i see so far ( i am not an expert, the forum staff should know better )
    Last edited by Mustafa ilker Yonel; September 30, 2017 at 09:01 AM.

+ Reply to Thread