Support

Account

Home Forums General Issues Custom field type + Conditional logic Reply To: Custom field type + Conditional logic

  • SORRY for highjacking your thread.

    Any change you could share a working demo of a custom implementation?

    Currently i’m trying to see if i can make the following field working https://github.com/kevinruscoe/acf-star-rating-field/tree/master with acf’s conditional logic.

    So i added the to the input.js

    var star_field = acf.Field.extend({ type: 'star_rating_field' });
    		acf.registerFieldType(star_field);
    		acf.registerConditionForFieldType('equalTo', 'star_rating_field');

    .

    Now i’m able to select conditions in other fields and select that field. The only issue is the conditions are not working so i have the feeling i’m missing some code to make this to work. Any ideas?