Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,216
Community Members
 
Community Events
165
Community Groups

Revert CSS changes or Reverse Option

Is there any way to revert or add a reverse clause on the css changes made by a 'confiForms Rules for field Definition' where the action is 'Apply CSS on a field'?


For example, in my form, if a custom validation rule is not met, then I have set to where the box border will be changed to red, but I want this to disappear once a change has been or resubmitted. Currently, one the field has this case where if a user presses submit, the css will change, but if its submitted again and a different validation exception happens, that field stays red.

 

Thanks for any help :)

1 answer

1 accepted

Hi

You just need to define a rule that is an inverse to the one that is defined and does what the reverse operation (applying css to unset what was set)

Alex

got it, but how would you make an inverse rule for an added class? Is there a way to remove a class without custom JS (I am on a server which does not support custom JS)? 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

1,101 views 21 29
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