Zum Hauptinhalt gehen

fs_button and PlainText not serializable

Kommentare

2 Kommentare

  • Zendesk API User
    Author: felix_reinhold - 6/10/2020 10:04

    Hi Antonio,

    did you try to log the return of $('date').get('value')? According to the error I'd guess the value just isn't serializable cause it's complex, null, undefined or sth. else.

    Maybe just try sth. like "typeof($('date').get('value'))".plain cause typeof always returns a String. If you don't get the error anymore the issue seems to be realted to the value of  $('date').get('value')

    Best regards

    Felix

    0
  • Zendesk API User
    Author: zava - 6/15/2020 14:00

    Hi Felix,

    Thx, I found an alternative solution in top.WE_API.Common.execute("script:

    <script type="text/javascript"> 

         function create_event(){ 

              top.WE_API.Common.execute("script:create_event", 

                   {

                        "convert": true,

                        "kb_type": "$CMS_VALUE(#global.section.template.uid)$"

                    }, 

                   function(result){ 

                         refreshPage(result);

                   } 

              ); 

              } 

    </script>

    <button onclick="create_event();" class="fs-button fs-button-button">

    <span class="fs-button-iconlabel ">

    <span class="fs-button-icon"><span data-fs-resource-icon="ACTION"></span></span>

    <span class="fs-button-label middle">In eine Veranstaltung umwandeln</span>

    </span>

    </button>

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.