Our goal is to create dependent enumeration fields . For eg: If we have two drop downs A and B , on selecting the value of Drop down A should populate the values of Drop down 2. This is very much similar to the cascading plugin however both the drop downs should have their own name associated with it . We have created ao table which persists the mapping information and able to retrieve the mapped values through rest API.
We tried to achieve this by creating the custom field module type and realised that we can associate only one field Id and name to one custom field type. If we go for the option of creating two custom fields linking them together on onchange of drop-down A has become a challenge. can anyone please suggest on how we can achieve this
You can use nfeed plugin which help you to retrieve data through rest API. And using behaviour plugin make the 2 field cascading.
Or
You can also do this using java script + rest API module where rest API will fetch data from ao table and give to JavaScript which populate data in respective custom field.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.