I'm using dependent fields for an awards show submission process. (see images attached). User ticks the award show, and award nominations for that show are displayed. I have the following content types:
1. Award show
2. Award nomination (using node reference for the award show)
3. Work item -- the item that has been submitted to a particular award show, via an award nomination
The work item contains the award show and award nomination dependent fields (award show is controller field, nomination is dependent.) The dependent field is using a view to filter to the appropriate nominations.
My problem is that when I tick an award show, then tick the nomination and save the node form I get the error message attached. Illegal choice, post can't be referenced. However, if I tick the award show, then save, re-edit and tick the nomination and save, then it's accepted.
I'm at a loss to come up with a way for the user to be able to make a selection in both the controller and dependent fields, with one save. My best guess is that since the award show was not originally present in the form array, it's failing.
Maybe I'm just going about this wrong. Any assistance appreciated!
| Comment | File | Size | Author |
|---|---|---|---|
| error.jpg | 10.2 KB | jpodhajsky | |
| awards.jpg | 34.84 KB | jpodhajsky |
Comments
Comment #1
smoothify commentedI've moved on from Drupal Development work now, and so unfortunately i need to abandon this module. If anyone is interested on reviving it, please let me know through my contact form.