Forums

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

Reset values of hidden fields in Confiforms datasets

Dennis W April 11, 2019

Dear community,

I'm trying to purge data from a hidden field in a Confiforms data set. Reason for this is that I populate this field in a complex approval process, and in rare cases fetching the data I want to put in there via IFTTT fails due to DNS lookup errors. So I need to reset the data and run the process again.

I tried an IFTTT ActionButton and put as "Action to perform"

confluencelink=[empty]

but this won't empty the field "confluencelink".

confluencelink=NULL 

or just

confluencelink=

also doesn't work. How am I supposed to tell the macro that I what confluencelink to be empty?

Thanks a bunch!

2 answers

1 vote
Alex Medved _ConfiForms_
Community Champion
April 11, 2019

Hi Dennis

See the simple demo below

reset-demo.pngWhere the "confluencelink" field is of type "link" and I have also a checkbox field for "reset" field

 

So, when a "reset" field is checked then the link is cleaned up

The IFTTT macro configuration is as follows

 

reset-demo-ifttt.png

0 votes
Dennis W April 11, 2019

Hey Alex, 

 

thanks for your answer! So the trick is to provide the entryId, as well? Or switching field types? 

Alex Medved _ConfiForms_
Community Champion
April 11, 2019

The type of field you want to "reset" does not matter.

entryId=[entry.id]

tells ConfiForms IFTTT macro to set the parameters on "current" ConfiForms entry. Basically, this is the way to tell ConfiForms action to "Create/Update ConfiForms Entry" to update the entry.

Leaving it out will actually create a new entry / record in ConfiForms form

Like # people like this
Dennis W April 12, 2019

Thank you! Your solution seems to work with 1 value I want to reset, but full disclosure: it's 2! :) And with two the changes are not applied.

Any idea?

entryId=[entry.id]&confluencelink=&jiralink=
Dennis W April 12, 2019

Sorry, my previous message was wrong. I have an error downstream that re-creates the entries.

As we're already talking: do you know how to check whether ${iftttResult_0.id} has a value in the IFTTT conditions?

Alex Medved _ConfiForms_
Community Champion
April 12, 2019

I think what you are looking for is to use the ! with the expression (this is evaluated as Velocity template anyway, see "Quiet Reference Notation" section)

$!{iftttResult_0.id}

it will set the empty value if there is no iftttResult_0 or no id property in this IFTTT result

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events