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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.