Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John McKillip 33 posts 116 karma points
    Mar 24, 2018 @ 19:16
    John McKillip
    0

    Editor not displaying in Forms v 7.0.0

    Hi. I am running the latest version of Umbraco and forms on Umbraco cloud. The rich text editor shows as an option for a field in Forms, but, the editor does not render in the design view or on the front-end. I was really excited to find this plugin, as, it is exactly what I needed. Do you have any plans to get this working for Forms v 7x? Or, could you point me in the right direction to fix whatever is wrong? Thanks!

    Missing Editor in Forms design view

  • John McKillip 33 posts 116 karma points
    Mar 24, 2018 @ 19:26
    John McKillip
    0

    I downgraded version of Forms to 6.0.5 and the issue is still there. So, possibly an issue with Umbraco version? I'm running 7.9.2.

  • Matthew Wise 271 posts 1373 karma points MVP 5x c-trib
    Mar 24, 2018 @ 20:18
    Matthew Wise
    0

    Hi John,

    Thanks ms for lookt at my package.

    Do you see any console errors when using it in the editor?

    Cheers Matt

  • John McKillip 33 posts 116 karma points
    Mar 24, 2018 @ 20:19
    John McKillip
    0

    Hi Matt,

    No, there are no console errors. Thanks! -John

  • Matthew Wise 271 posts 1373 karma points MVP 5x c-trib
    Mar 24, 2018 @ 20:22
    Matthew Wise
    0

    Does the rich text editor show in the side panel like other fields?

    Am on my phone right now but I'll definitely take a look later.

    Matt

  • John McKillip 33 posts 116 karma points
    Mar 24, 2018 @ 20:26
    John McKillip
    0

    It does show in the side panel when you select it as the editor, but, once you go back to the designer, it is missing there. John

  • Matthew Wise 271 posts 1373 karma points MVP 5x c-trib
    Mar 24, 2018 @ 21:28
    Matthew Wise
    0

    Hi John,

    I just created a fresh Umbraco 7.9.2 install locally. Then installed Umbraco forms (v7) and my package via Umbraco package install.

    I can't replicate you're issue.

    Does the Views\Partials\Forms\Fieldtypes\FieldType.RichText.cshtml exsist? As this is the file that renders the RTE content.

    Below is a Json file with the form data, I just created as a test which works for me. Could you recreate it on you're install and see if it works.

    App_Data\UmbracoForms\Data\forms\8ccd1b14-b90c-4cb6-acd8-069309c6b615.json

    {
    
    
    "name": "Test",
      "created": "2018-03-24T21:17:41.2755938+00:00",
      "pages": [
        {
          "fieldSets": [
            {
              "caption": null,
              "sortOrder": 0,
              "id": "e04ea577-5622-4ded-80bd-d99ebe454ace",
              "page": "00000000-0000-0000-0000-000000000000",
              "containers": [
                {
                  "caption": null,
                  "width": 12,
                  "fields": [
                    {
                      "caption": "Consent for storing submitted data",
                      "tooltip": null,
                      "placeholder": null,
                      "cssClass": null,
                      "alias": "dataConsent",
                      "id": "4ec4739e-e351-45b3-b251-76f4b52fc633",
                      "fieldTypeId": "a72c9df9-3847-47cf-afb8-b86773fd12cd",
                      "prevalueSourceId": "00000000-0000-0000-0000-000000000000",
                      "dataSourceFieldKey": null,
                      "containsSensitiveData": false,
                      "mandatory": true,
                      "regex": null,
                      "requiredErrorMessage": "Consent is required to store and process the data in this form.",
                      "invalidErrorMessage": null,
                      "condition": null,
                      "settings": {
                        "AcceptCopy": "Yes, I give permission to store and process my data",
                        "DeclineCopy": "No, I don't consent to storing and processing my data"
                      },
                      "preValues": null
                    },
                    {
                      "caption": "Main body",
                      "tooltip": "",
                      "placeholder": null,
                      "cssClass": null,
                      "alias": "mainBody",
                      "id": "71a76ff2-095c-4ee8-dfce-fd4ab85241fa",
                      "fieldTypeId": "826e9dca-91bc-4672-945c-f110c8121f60",
                      "prevalueSourceId": "00000000-0000-0000-0000-000000000000",
                      "dataSourceFieldKey": null,
                      "containsSensitiveData": false,
                      "mandatory": false,
                      "regex": null,
                      "requiredErrorMessage": null,
                      "invalidErrorMessage": null,
                      "condition": {
                        "id": "00000000-0000-0000-0000-000000000000",
                        "enabled": false,
                        "actionType": "Show",
                        "logicType": "All",
                        "rules": []
                      },
                      "settings": {
                        "Html": "<p>asdasdgdfg</p>\n<p>gdfg fdg</p>\n<p>dfg</p>\n<p>dfg</p>\n<p>df</p>\n<p>g d</p>\n<p>fg</p>\n<p>df</p>"
                      },
                      "preValues": []
                    }
                  ]
                }
              ],
              "condition": null
            }
          ],
          "caption": null,
          "sortOrder": 0,
          "id": "00000000-0000-0000-0000-000000000000",
          "form": "00000000-0000-0000-0000-000000000000"
        }
      ],
      "id": "8ccd1b14-b90c-4cb6-acd8-069309c6b615",
      "fieldIndicationType": "MarkMandatoryFields",
      "indicator": "*",
      "showValidationSummary": false,
      "hideFieldValidation": false,
      "requiredErrorMessage": "Please provide a value for {0}",
      "invalidErrorMessage": "Please provide a valid value for {0}",
      "messageOnSubmit": "Thank you",
      "goToPageOnSubmit": 0,
      "xPathOnSubmit": null,
      "manualApproval": false,
      "storeRecordsLocally": true,
      "cssClass": null,
      "disableDefaultStylesheet": false,
      "useClientDependency": false,
      "workflows": [],
      "datasource": null,
      "submitLabel": "Submit",
      "nextLabel": "Next",
      "prevLabel": "Previous"
    }
    

    I don't have Umbraco Cloud but I can't see why it would be failing in Cloud.

    Cheers Matt

  • John McKillip 33 posts 116 karma points
    Mar 24, 2018 @ 22:09
    John McKillip
    0

    Hi. Hmm. Yeah, the view is there. Not sure what would be different on mine. It doesn't work locally or in the cloud. I have tried adding markup to the view and it's like it doesn't see it at all.

  • John McKillip 33 posts 116 karma points
    Mar 24, 2018 @ 22:41
    John McKillip
    0

    Hi. Just as a side note - I just installed your package on a different Cloud site and it is doing the same thing. I wonder if something is structured differently for the cloud? Like I said, there are no console errors. Any edits to the view FieldType.RichText.cshtml do not show up either. Thanks for taking at look this! -John

  • Matthew Wise 271 posts 1373 karma points MVP 5x c-trib
    Mar 24, 2018 @ 22:53
    Matthew Wise
    0

    Sounds like. Am going to have to get a Cloud demo and have a look see on this one.

    Won't be today though hopefully in the tomorrow or in the week :)

    If you have time to take a look before then the source is here:

    https://github.com/Matthew-Wise/umbraco-forms-rte

    Cheers

    Matt

  • John McKillip 33 posts 116 karma points
    Mar 25, 2018 @ 15:23
    John McKillip
    100

    So, sorry for the confusion. Now, I realize that I was wrong because I thought this was something else. I thought this package added a field for user input that was rich text. I see now that it is not that and only creates rich text to display in a form. It works fine in the cloud. -John

Please Sign in or register to post replies

Write your reply to:

Draft