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

Confiforms: Javascript (HTML macro) to automatically click 'edit' on a user's record in tableview


I currently have a Confiform form (Form 1) that takes inputs from a user, runs a lookup in a table to produce an output, and copies all fields to a new form when saved. Form 1 also automatically redirects the user to the page containing the new form.
This new Confiform form (Form 2) , with copied fields from the previous form, takes in more mandatory fields to run a lookup, and allows the user to create a jira. Records are presented in TableView, and a user would fill in the new mandatory fields through editing a record in a table to fire the IFTTT Macro to Create a Jira. 


Essentially, when the user is automatically redirected to Form 2, I would like for the 'edit' button in the tableview record to be automatically clicked, to save the user time. Is this possible? 


I tried using the HTML macro with the javascript 

function clickEditbutton(){

and a Rules for Field Definition macro with 

Condition: !NewMandatoryfield:[empty] 

Action To Execute: Run custom JavaScript

JavaScript to Run: clickEditbutton();


This didn't work though I managed to do it with the Save button previously - I have a gut feeling that it is because of the way i defined the edit button, and would love any help. 


Best Regards,



1 answer


Are you saying the JS doe snot get called by ConfiForms? Do you have a button with this class on the page?



Hi Alex,

No, I do not have a button with this class on the page, and I am unsure what is the name of the button. As mentioned, it would be a user's form record in a table with the following picture as an example. Would you know the name of this button so that I may use it in the JS?


Screenshot (101).png

I am confused... You are saying  that JS is not called, but you actually have something like which in reality does not exist and therefore there is nothing to "click" on


Sorry, I have no idea how to help, as I dont really understand the question.. may be someone else could jump in and help 


Hi Alex, or anyone that is able to help,

To put it more concisely, I am looking for the name of the button here : (This is the edit button of a Confiform Record in a TableView macro). I am trying to use the name of this button to use in my JS, which I have currently written like 

function clickEditbutton(){

Screenshot (101).png

My JS currently does not work as I think that the button name I am using, button.edit-cf-btn, is wrong. Thus, i am looking for the name of the button to use in my JS

I have no idea why you are doing what you are doing, but it is quite easy to look at the element by using Chrome developer tools or equivalent

So, you can see that these are not buttons, but "a href" links

And to run the script associated with this link you can do something like


 (for the first row in the table, as you may easily have multiple rows... this finds the first matching and initiates the edit)

Suggest an answer

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

How we use Jira Service Management for our recruitment process! - Part 2

It is never about setting up a process and being done with it. Rather, the focus should always be on optimizing it for the best outcomes. Thus, we didn’t stop at setting up JSM for our recruitment pr...

216 views 0 5
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