1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

HTML Submission Message

Discussion in 'Community' started by ranggasan, Apr 20, 2021.

  1. ranggasan

    ranggasan New Member

    Level: Community
    Hello,

    I create custom submission message using HTML in redirect plugin, but in recent joomla update, the submission message don't executed correctly, it show HTML code in the front end instead

    When I replicate this issue, I found that this problem was occurred in joomla 3.9.25

    Anyone know how to fix it?

    -------------------------------
    Joomla: 3.9.26
    Fabrik: 3.9.2
    PHP: 7.3.3
     
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    I can't replicate, HTML is displayed correctly no matter if it's in a system message or a popup.
    Correct HTML syntax?
    Did you try frontend and backend?
    Do you have custom templates, CSS?
     
  3. ranggasan

    ranggasan New Member

    Level: Community
    I'm using this plugin (redirect)

    [​IMG]

    Here is the code:

    HTML:
    <html>
       <head>
          <link rel="stylesheet" href="https://standarpangan.pom.go.id/media/custom_files/notif/lobibox.min.css"/>
          <link rel="stylesheet" href="https://standarpangan.pom.go.id/media/custom_files/notif/animate.css"/>
         
          <script src="https://standarpangan.pom.go.id/media/custom_files/notif/jquery-1.11.1.min.js"></script>
          <script src="https://standarpangan.pom.go.id/media/custom_files/notif/lobibox.min.js"></script>
          <script src="https://standarpangan.pom.go.id/media/custom_files/notif/notifications.min.js"></script>
          <script src="https://standarpangan.pom.go.id/media/custom_files/notif/messageboxes.min.js"></script>
       </head>
     
       <body>
       <style>
         .alert.alert-message {
           display: none;
       </style>

          <script>
            Lobibox.notify('success', {
            pauseDelayOnHover: true,
            continueDelayOnInactiveTab: false,
            position: 'bottom left',
            showClass: 'zoomInUp',
            hideClass: 'zoomOutDown',
            title: 'Sukses!',
            msg: 'Data berhasil diupdate.'
            });
          </script>
       </body>
    </html>
    The result should be like this

    [​IMG]

    The code is working on joomla 3.9.24 and below, but after update to joomla 3.9.25 and up, the code is not working, only display default message with the syntax in it

    [​IMG]

    I tried both frontend and backend but all to no avail and I'm not using custom template & CSS for fabrik
     
  4. troester

    troester Well-Known Member Staff Member

    Level: Community
    If it's working with J!3.9.24 it's a Joomla thing.
    I assume it was just by chance working, putting additional html/head/body tags into an existing page is not valid.

    Why aren't you doing something like
    <h2>Sukses!</h2>
    Some text...
     
  5. ranggasan

    ranggasan New Member

    Level: Community
    I thought I could customize submission message using html and css so that we can create pop up message on submission instead using default notification. Because so far, I have not encountered any problems until recent joomla update

    Very well then, thanks for the clarification troester
     

Share This Page