Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Running javascript IFTTT

Matěj Mazák May 31, 2024

Hello,

I am trying to create a Javascript automation in Confiforms and honestly don't know what I'm doing wrong.

I have two fields in my form:

  • Vote - which is a space delimited list of usernames
  • Winner - which is empty userpicker field and should be filled by one random username from Vote field

This is the IFTTT rule with the javascript I'm trying to run:

IFTTT_rule.png

Now it could be that the javascript is wrong, I am not that strong in programming or that I am just parsing the values wrong way.

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
May 31, 2024

Hi @Matěj Mazák 

If you want to modify field values in UI with your custom Javascript then consider doing it via https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+Field+Definition+Rules#ConfiFormsFieldDefinitionRules-RuncustomJavaScript

Alex

Matěj Mazák March 11, 2025

Hi @Alex Medved _ConfiForms_ 

I've been looking into this again and in this example: Using ConfiForms Field Definition rules with JavaScript action to get and set field values 

you are using a HTML macro to hold the custom JavaScript.

Where have you gotten this macro? Is there some alternative that I can use?

Our confluence doesn't have that macro available.

Thanks

Matej

Matěj Mazák March 11, 2025

Oh, my CISO is not gonna like that :D

Thank you for your response. We can close it now.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events