1

Topic: Drupal 8 iform module - page type selector doesn't update

Hi all,


PROBLEM:
In Drupal 8 when I create an Indicia page the 'select page category' select element is not triggering an update of the 'page type' select element. As a result I can't select a prebuilt page or load the related settings form.


FURTHER INFORMATION:
I've installed Drupal 8 this afternoon and the related Indicia modules (latest versions taken from Github)

* https://github.com/Indicia-Team/drupal-8-module-iform including: -
    * https://github.com/Indicia-Team/client_helpers
    * https://github.com/Indicia-Team/media

* https://github.com/Indicia-Team/drupal- … a_features


I've enabled Easy Login, Indicia AJAX Proxy and Indicia Forms via the Extend page within Drupal an no errors were reported. I attach a screenshot of the Indicia diagnostic screen showing everything is ok.


When I try to create an Indicia page there is nothing happening when I select a page category. In Drupal 7 the page type dropdown list updated to provide a list of prebuilt forms to choose from.


There are no error messages displayed in the PHP error log. There are also no AJAX requests firing on the network tab of the browser. I can't find an on.change listener in the source code for the page, however I have noticed the name of the 'select page category element' is name="iform-cetegory". Anybody else come across this one?

Post's attachments

indicia diagnostic screenshot.JPG 80.74 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

2

Re: Drupal 8 iform module - page type selector doesn't update

I'm not on to Drupal 8 yet but those who are most have got past this.
I presume you checked the browser console and no JavaScript errors were being reported.

In D7 the name is similarly mis-spelt but that doesn't matter as the event handler is

$('#form-category-picker').change(function(e) {...}

3

Re: Drupal 8 iform module - page type selector doesn't update

Hi Jim,

That's correct no Javascript errors are being reported via the console. I would have expected something to log to the console e.g. "undefined x ..." each time I select a new value.

4

Re: Drupal 8 iform module - page type selector doesn't update

Hi Paul,
Are you on the develop branch of https://github.com/Indicia-Team/drupal-8-module-iform? It has quite a few updates that haven't been moved to the master branch yet.
Regards
John

John van Breda
Biodiverse IT

5

Re: Drupal 8 iform module - page type selector doesn't update

Hi John,

I downloaded the master yes. I will try again with the develop branch tomorrow and report back.

Cheers

Paul

6

Re: Drupal 8 iform module - page type selector doesn't update

Hi John,

Using the development branch resolved this issue.

Cheers