Skip to content

Problem with two instances of module in different positions on same page #2

@rogercreagh

Description

@rogercreagh

There is an option to have a unique identifier to prevent clashes from having two newsletter subscriber forms on the same page in different module positions.

Unfortunately this doesn't seem to work - when the form is submitted from one position it correctly adds the details to the mailinlist.txt file and sends a notification email but then it crashes with the following error on the 404 Page Not Found page

Image

It seems that adding the unique id makes no difference. It appears as a prefix to the value in the following code in the form:
<input type="hidden" name="modns_uniqid" value="69b1b97409533">

The two instances of the module have different modns_uniqid values whether or not there is a prefix added from the option, but it looks like it isn't working since the error above is always generated.

Or am I missing something

(for info the use case for having two instances of the module is that one is in the template page header, but on mobile devices it is hidden (display:none;) and replaced by one further down the page using css @media values. But the problem is there whether or not the second module is hidden)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions