If you have questions or if you want to share your opinion about Aware IM post your message on this forum
#53176 by ddumas
Tue Feb 18, 2020 6:45 pm
I have a popup window for a form edit. It puts a close button at the bottom (which I do not even want). If you make edits and then click the close button at the bottom, you do not get the valuable message that you will lose unsaved changes.

So I believe this may be a bug.

I have a panel operation (where all operations for forms should always be defined IMO) which has a close form operation. That one works fine, and warns the user if there are unsaved edits.

Is there any way to not show the close button at the bottom of the popup window?

I logged this as a possible bug also.

Last edited by ddumas on Sun Feb 23, 2020 2:08 pm, edited 1 time in total.
#53197 by BLOMASKY
Wed Feb 19, 2020 5:05 pm
CSS - .k-window-actions {display: none;}
JQuery - ${“.k-window-actions”).css.(“display”, “none”);

Add script in form render:
$(".aw-form-buttons").css ("display", "none");
#53199 by ddumas
Wed Feb 19, 2020 5:30 pm
thanks! So, need a bit more Clarification

I attached 3 screenshots:

CSS - .k-window-actions {display: none;} Add this to the CSS Style or CSS Class Property?

$(".aw-form-buttons").css ("display", "none"); Add this to the Render Script tab in the Dialog for scripts?

JQuery - ${“.k-window-actions”).css.(“display”, “none”); Add this where?
Scripts.PNG (19.87 KiB) Viewed 2713 times
MainFormBO.PNG (51.72 KiB) Viewed 2713 times
MainFormBOTop.PNG (14.57 KiB) Viewed 2713 times
#53260 by ddumas
Sat Feb 22, 2020 1:57 pm
I have logged a paid support ticket, but have not received a response. Can we do a Zoom meeting for the support ticket? One of the members had responded in the post I had cited (#53197) with 3 small javascript code snippets that they claim will get rid of the close button, but I have no idea where to put them, and I am not a javascript guy. I have attached a pic of the close button here.
CloseButton.PNG (2.99 KiB) Viewed 2517 times
#53262 by johntalbott
Sat Feb 22, 2020 9:49 pm
Put this in the Render tab of the Advanced scripts setting of the form.

$(".aw-form-buttons").css ("display", "none");
#53263 by ddumas
Sun Feb 23, 2020 2:07 pm

Worked perfectly - buttons are gone. It would be great if this was a property option for a Form "Hide Buttons", which would do this.

BaaaaaaaaaaaaaaaaaaaaM Home Run, out of the park :)

thanks you so much,
#53265 by ddumas
Sun Feb 23, 2020 10:29 pm
I went to the website, filled in the form, and submitted. I never heard back. However, now, in this particular case, since I have a single line of script code that eliminates the buttons that appear on the bottom of any form, I don't think I need to address this anymore. However, if you create a popup form, I think you will see that the close button ignores edits and does not warn of pending changes, so feel free to investigate this. I think I have provided enough info in this post, and in my post in the problem reports section that describes this.

Who is online

Users browsing this forum: Majestic-12 [Bot], MSN [Bot] and 15 guests