Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    1. Home
    2. Constance Hua
    3. Posts
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Best 0
    • Groups 0

    Posts made by Constance Hua

    • RE: Cloud Backend trigger formula parameter

      @joseph-benguira said in Cloud Backend trigger formula parameter:

      $("input[name='EMAIL']").val()

      Thanks a lot Joseph for the example, so not javascript but jQuery actually, I see.

      I tried with jQuery to get the parent element ID but it also did not work:
      $(this).parent().attr('id')

      Did you try on your side? Here is how to reproduce:

      • Create a button section, give it an ID (edit element -> identification)
      • Add a button in this section and create a cloud backend action
      • Before the function call, check the box "execute a javascript" and add a code to trigger a confirmation pop up for e.g. Put the parent ID in that pop up:
      //I tried this: 
      var id = this.parentElement.id
      //and this:
      var id = $(this).parent().attr('id')
      
      confirm(id)
      

      Let me know if you succeed and how!
      Thanks!
      Constance

      posted in General Discussion
      C
      Constance Hua
    • RE: Modal content blocked

      If anyone needs an easy alternative, read the answer here: https://community.appdrag.com/topic/1157/modal-content-blocked-2-refused-to-connect?_=1668797095679

      posted in Cloud CMS (Pagebuilder
      C
      Constance Hua
    • RE: Modal content blocked (2) - Refused to connect

      @joseph-benguira Thanks for your response!
      No I am redirecting to a website, but I need it to open in a modal. The CORS origin seems to be the blocker but I found a solution:
      Instead of opening a modal, I just added the following parameter to the <span> item:

      <span onclick="window.open('https://www.website.com'); return false;">Your text </span>

      I hope it can help others!
      Cheers

      posted in General Discussion
      C
      Constance Hua
    • Cloud Backend trigger formula parameter

      Hi there,
      there is a parameter type in the backend trigger called "formula (javascript)".
      There is NO documentation about it. How frustrating.

      So because the software vendor was not able to document their functionalities properly, I need your help to resolve this:

      One parameter is called "ID" and this ID is actually the id of the parent element of the current element (where I add this trigger).

      I tries to enter "this.parentElement.id" but I get the error: "Cannot read properties of undefined (reading 'id')"

      Can someone help please?
      Thank you
      Constance

      posted in General Discussion
      C
      Constance Hua
    • Modal content blocked (2) - Refused to connect

      Re: Modal content blocked

      Hi all,
      Related to the linked topic, I still do not understand why my content is being blocked. I am not using code, just the page builder.
      I have added a picture and added a URL to it. Then when I choose the Modal to display the URL content, I get the message "refused to connect".

      I read about xframe origins but not sure how to resolve this at all.

      Thank you
      Constance

      posted in General Discussion
      C
      Constance Hua