I have a "Hierarchical Select" field in my content type. I have installed the latest DrupalGap module and the corresponding SDK.

All of the fields are showing up fine on the mobile application SDK link except the hierarchical select field.

Does DrupalGap support the hierarchical select fields in the node add content type field?

The module on the whole is working excellent. Thank you for providing the same!

Reference links:
Content Creation Link on the Web:
http://kumbhmelahealthindex.in/node/add/pharmacy-data

DrupalGap SDK link for the above create content link:
http://kumbhmelahealthindex.in/drupalgap-sdk/
(note: The medicine field which is a HS field is missing in the DrupalGap SDK)

Comments

tyler.frankenstein’s picture

Category: Bug report » Feature request
Status: Active » Needs work

@rsutaria, thank you for the detailed report. DrupalGap does not yet have support: for https://www.drupal.org/project/hierarchical_select, please check out this page for instructions on adding support for a contributed module's field in DrupalGap:

http://drupalgap.org/node/216

For this example, we would be using hierarchical_select as the machine name.

rsutaria’s picture

Hi tyler.frankenstein,

DrupalGap is an excellent project and I deeply appreciate your providing it to the community.

We are working on a Public Health project in India and are trying to build an Android App based on our Drupal setup. DrupalGap seems perfect for what we are trying, except that one of our main fields in the content form is based on Hierarchical Select. We are really hoping to use DrupalGap. I went through the link you have given for adding supported fields from contributed modules. Unfortunately, I'm not familiar with how to implement the module with the necessary hooks.

I'm hoping someone from the community might be able to help with this.

with appreciation,
rsutaria

tyler.frankenstein’s picture

@rsutaria, thank you for the kind words. Don't give up that easily! ;) Check out some of these modules for examples on how to implement each of the hooks.

I'd recommend starting with hook_field_formatter_view().

rsutaria’s picture

@tyler.frankenstein - will try to do this. I'm not too familiar with Drupal APIs, so not sure if I'll be able to build the HS module.

Will update you if I'm able to make progress on this. Appreciate your response!

jerodfritz’s picture

@rsutaria @tyler.frankenstein Were you able to best determine how to edit a hierarchical select field?