<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cloud Backend trigger formula parameter]]></title><description><![CDATA[<p dir="auto">Hi there,<br />
there is a parameter type in the backend trigger called "formula (javascript)".<br />
There is NO documentation about it. How frustrating.</p>
<p dir="auto">So because the software vendor was not able to document their functionalities properly, I need your help to resolve this:</p>
<p dir="auto">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).</p>
<p dir="auto">I tries to enter "<a href="http://this.parentElement.id" rel="nofollow ugc">this.parentElement.id</a>" but I get the error: "Cannot read properties of undefined (reading 'id')"</p>
<p dir="auto">Can someone help please?<br />
Thank you<br />
Constance</p>
]]></description><link>https://community.appdrag.com/topic/1167/cloud-backend-trigger-formula-parameter</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 16:50:57 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/1167.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 Nov 2022 18:52:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cloud Backend trigger formula parameter on Mon, 28 Nov 2022 11:35:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/1103">@constance-hua</a> your logic seems too complex ... Instead please try this</p>
<ol>
<li>hide your original button</li>
<li>create a new button that open your confirmation modal</li>
<li>if accepted, generate a click to the real hidden button. Eg: $("#myHiddenButton").trigger('click')</li>
</ol>
<p dir="auto">done <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
]]></description><link>https://community.appdrag.com/post/4486</link><guid isPermaLink="true">https://community.appdrag.com/post/4486</guid><dc:creator><![CDATA[Joseph Benguira]]></dc:creator><pubDate>Mon, 28 Nov 2022 11:35:11 GMT</pubDate></item><item><title><![CDATA[Reply to Cloud Backend trigger formula parameter on Sun, 27 Nov 2022 21:56:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/16">@joseph-benguira</a> said in <a href="/post/4465">Cloud Backend trigger formula parameter</a>:</p>
<blockquote>
<p dir="auto">$("input[name='EMAIL']").val()</p>
</blockquote>
<p dir="auto">Thanks a lot Joseph for the example, so not javascript but jQuery actually, I see.</p>
<p dir="auto">I tried with jQuery to get the parent element ID but it also did not work:<br />
$(this).parent().attr('id')</p>
<p dir="auto">Did you try on your side? Here is how to reproduce:</p>
<ul>
<li>Create a button section, give it an ID (edit element -&gt; identification)</li>
<li>Add a button in this section and create a cloud backend action</li>
<li>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:</li>
</ul>
<pre><code>//I tried this: 
var id = this.parentElement.id
//and this:
var id = $(this).parent().attr('id')

confirm(id)
</code></pre>
<p dir="auto">Let me know if you succeed and how!<br />
Thanks!<br />
Constance</p>
]]></description><link>https://community.appdrag.com/post/4483</link><guid isPermaLink="true">https://community.appdrag.com/post/4483</guid><dc:creator><![CDATA[Constance Hua]]></dc:creator><pubDate>Sun, 27 Nov 2022 21:56:04 GMT</pubDate></item><item><title><![CDATA[Reply to Cloud Backend trigger formula parameter on Sun, 20 Nov 2022 11:17:16 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/1103">@constance-hua</a>,<br />
In that field you can pass ANY valid Javascript instruction</p>
<p dir="auto">here is an example to fetch the value of an input name EMAIL:<br />
$("input[name='EMAIL']").val()</p>
]]></description><link>https://community.appdrag.com/post/4465</link><guid isPermaLink="true">https://community.appdrag.com/post/4465</guid><dc:creator><![CDATA[Joseph Benguira]]></dc:creator><pubDate>Sun, 20 Nov 2022 11:17:16 GMT</pubDate></item></channel></rss>