I have two custom UI actions on one form and need them to both process separately

Paul McCurnin
Tera Expert

I have two custom UI actions on one form and need them to both process separately, but the second custom ui action processes on both custom form buttons. I am absolutely sure the solution is simple, I just can't seem to sort out what I need to do in my script or the condition statement. 

 

Assistance would be great, thank you!

1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

You need to have the function name doubleCheck() different names instead of one name for each UI action.

SO change the function name in the onClick and the script to a different name for one of the UI actions.


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

9 REPLIES 9

Apologies, here are a few more snaps for context. The problem is that whether I select the Delete Box Folder action button, or the Maintenance Update action button, the Delete Box Folder Action is triggered.

@Paul McCurnin 

Agree that having the same function name is a bad idea, mostly because these are two UI actions living together on the same table and mostly showing together on the form.

Change the doubleCheck function name to something else on the Onclick field and on line1 of the code.


If I helped you with your case, please click the Thumb Icon and mark as Correct.


SanjivMeher
Kilo Patron
Kilo Patron

You need to have the function name doubleCheck() different names instead of one name for each UI action.

SO change the function name in the onClick and the script to a different name for one of the UI actions.


Please mark this response as correct or helpful if it assisted you with your question.

That worked, thank you! I was concerned the doubleCheck was a function I could not modify. I just changed it tripleCheck() and it works just fine now

Awesome. Glad it helped. Could you please mark my response as correct answer if it worked for you.


Please mark this response as correct or helpful if it assisted you with your question.