I want to give to the users a preview of a node when they add or modify some data.
In particular I have 2 types of nodes:

  • prenotazione, that means reservation
  • calendario, that are calendars where users add reservations

When a user create a new reservation, he has to select a calendar and in the meantime he should see the correspondent calendar availability without reloading the page everytime the user change his choice.

To do this, I downloaded dependent_fields and markup modules.
I created a node_reference field in the reservation type that addresses to the calendars,
I created also a markup field that should display in my mind the preview of the calendar node selected; because of a static content is required by markup field I put in there asilly word.

I tried to setup the dependency between these two fields, but every time I select a different calendar the markup field gives me the silly word instead of a string with the ID of the node that the user has selected.

I attach a screencast about this: http://www.youtube.com/watch?v=f67yWFBNa5M

Thnx,
Fair

Comments

smoothify’s picture

Thanks for providing the screencast.

It looks like you are using Markup field version 1.0-alpha1?

To use it successfully with AHAH dependent fields, you need to use the current 1.x-dev version which has a new callback specifically for this module.

I have committed a fix today in the markup module which won't be in the current release until about 12am GMT, but the Dec 19th version should still work reasonably well for you.

smoothify’s picture

Actually, I have just committed some fixes to AHAH Dependent Field module relevant to both the markup and markup_view modules today.

I have now rolled the first alpha release, so as well as downloading the dev release of markup, you should try to download alpha1 of dependent_fields.

pcambra’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Doing some cleanup as there's a new version for D8/9 and D6 is no longer alive