Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Prevent creating record on confiforms when page title exist

I have a form that has a title field and when user submit form a page with that title has been created. How could I prevent creating records when page title exist?

I set validation rule title:[entry.title] and it works when another record with same title exist, but it doesn't work when page exist but record doesn't exist in form data list. It shows an error that page exist and just create a record with new version of that page, but I don't want to create a record.

Thanks

1 answer

1 accepted

All operations with record state update (create) are done before any IFTTT execution

That means you cannot know in advance if any of the IFTTTs fail. Record lifecycle and IFTTTs processing are not done in the same transaction, and that is by design

However, you can react on "error" in the process and do what you need accordingly 

To answer your question - you need to set up an IFTTT to be executed onError event and with action to delete a record

Alex

Thanks

It would be better if we could define error type on "onError" event on "Fire condition" field. Because confiforms will delete records on all error types.

Not totally true

You can define a condition when to execute each IFTTT, including the ones that are triggered onError

 

I give you an example - you have an IFTTT to create a page, followed by IFTTT to use the created page id and save it back to record

Now, the 1st fails.. your onError IFTTT could check if the field that holds created page id is empty and run only then

 

Alex

Like Amir likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

114 views 1 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you