Skip to content

V8: Magic strings doesn't display value #176

@Frost117

Description

@Frost117

If you want to display the [#CurrentPage] for when the forms are being used, then you won't be able to do it in version 8.

In the documentation we have the following:
https://our.umbraco.com/documentation/Add-ons/UmbracoForms/Developer/Magic-Strings/#umbraco-page-field-item

But if you want to use this in a forms you will be left with nothing rendered in the view.

This is what it looks like in version 8:
image

Which should render out the name "Root Node".
image

And as you can see it fails to do so.

You are able to do it version 7.

image
image

The exact same setup, with 2 different results.

Reproduction

Steps to reproduce

  1. make form in v8.

  2. In the label put in [#pageName] like so:
    image

  3. Make a doctype, with a template, that has a form picker.

  4. Make a content node using the doctype that you have just made.
    If the form doesn't get displayed in the front-end you will need to update the template so it renders out the picked form.

  5. If you visit the front-end of the site you should see that the [#pageName] does not render out what you called the content node.

Specifics

The problem occurs on the root node.

Umbraco 8.0.1
Forms 8.1.1
Deploy 3.0.2

Problem exist in Firefox, Chrome and Edge

Expected result

That the form label displays the current node it is being viewed on.

Actual result

Nothing gets displayed.


This item has been added to our backlog AB#2334

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions