Close Button on Popup Form ignores edits (SOLVED)

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
ddumas
Posts: 389
Joined: Tue Apr 23, 2013 11:17 pm

Close Button on Popup Form ignores edits (SOLVED)

Post by ddumas »

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.

Dave
Last edited by ddumas on Sun Feb 23, 2020 2:08 pm, edited 1 time in total.
BLOMASKY
Posts: 1470
Joined: Wed Sep 30, 2015 10:08 pm
Location: Ocala FL

Re: Close Button on Popup Form ignores edits

Post by BLOMASKY »

CSS - .k-window-actions {display: none;}
JQuery - ${“.k-window-actions”).css.(“display”, “none”);

Add script in form render:
$(".aw-form-buttons").css ("display", "none");
ddumas
Posts: 389
Joined: Tue Apr 23, 2013 11:17 pm

Re: Close Button on Popup Form ignores edits

Post by ddumas »

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?
Attachments
Scripts.PNG
Scripts.PNG (19.87 KiB) Viewed 20256 times
MainFormBO.PNG
MainFormBO.PNG (51.72 KiB) Viewed 20256 times
MainFormBOTop.PNG
MainFormBOTop.PNG (14.57 KiB) Viewed 20256 times
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Close Button on Popup Form ignores edits

Post by aware_support »

What unnecessary "Close" button are you talking about? Can you send us a simple BSV that demonstrates the problem?
Aware IM Support Team
ddumas
Posts: 389
Joined: Tue Apr 23, 2013 11:17 pm

Re: Close Button on Popup Form ignores edits

Post by ddumas »

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.
Attachments
CloseButton.PNG
CloseButton.PNG (2.99 KiB) Viewed 20060 times
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Close Button on Popup Form ignores edits

Post by johntalbott »

Put this in the Render tab of the Advanced scripts setting of the form.

$(".aw-form-buttons").css ("display", "none");
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
ddumas
Posts: 389
Joined: Tue Apr 23, 2013 11:17 pm

Re: Close Button on Popup Form ignores edits

Post by ddumas »

John,

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,
Dave
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Close Button on Popup Form ignores edits (SOLVED)

Post by aware_support »

Code: Select all

I have logged a paid support ticket, but have not received a response
When was that? We haven't received any payment from you for a support ticket.
Aware IM Support Team
ddumas
Posts: 389
Joined: Tue Apr 23, 2013 11:17 pm

Re: Close Button on Popup Form ignores edits (SOLVED)

Post by ddumas »

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.
ddumas
Posts: 389
Joined: Tue Apr 23, 2013 11:17 pm

Re: Close Button on Popup Form ignores edits (SOLVED)

Post by ddumas »

for Support - I am happy to do a zoom meeting to reset my code back (1 line omission), and show you the issue. It would only take about 5 minutes
Dave
Post Reply