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
Close Button on Popup Form ignores edits (SOLVED)
Close Button on Popup Form ignores edits (SOLVED)
Last edited by ddumas on Sun Feb 23, 2020 2:08 pm, edited 1 time in total.
Re: Close Button on Popup Form ignores edits
CSS - .k-window-actions {display: none;}
JQuery - ${“.k-window-actions”).css.(“display”, “none”);
Add script in form render:
$(".aw-form-buttons").css ("display", "none");
JQuery - ${“.k-window-actions”).css.(“display”, “none”);
Add script in form render:
$(".aw-form-buttons").css ("display", "none");
Re: Close Button on Popup Form ignores edits
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?
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 (19.87 KiB) Viewed 28974 times
-
- MainFormBO.PNG (51.72 KiB) Viewed 28974 times
-
- MainFormBOTop.PNG (14.57 KiB) Viewed 28974 times
-
- Posts: 7526
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Close Button on Popup Form ignores edits
What unnecessary "Close" button are you talking about? Can you send us a simple BSV that demonstrates the problem?
Aware IM Support Team
Re: Close Button on Popup Form ignores edits
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 (2.99 KiB) Viewed 28778 times
-
- Posts: 619
- Joined: Wed Jun 17, 2015 11:16 pm
- Location: Omaha, Nebraska
- Contact:
Re: Close Button on Popup Form ignores edits
Put this in the Render tab of the Advanced scripts setting of the form.
$(".aw-form-buttons").css ("display", "none");
$(".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
We specialize in enabling business through the innovative use of technology.
AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
Re: Close Button on Popup Form ignores edits
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
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
-
- Posts: 7526
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Close Button on Popup Form ignores edits (SOLVED)
Code: Select all
I have logged a paid support ticket, but have not received a response
Aware IM Support Team
Re: Close Button on Popup Form ignores edits (SOLVED)
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.
Re: Close Button on Popup Form ignores edits (SOLVED)
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
Dave