How to create a button inside a form (among the fields)?
I don’t want to use a button in toolbar.
Re: Buttons inside a Form
Hi,
You can use an “HTML Image” field to show an image button. Then create a link in the field.
V?tor Jamil
Re: Buttons inside a Form
echo “<script type=“text/javascript”>”.
“window.close();”.
“</script>”;
This code works like a charm.
I put it on the OnAfterInsert Event and the windows closes just like I needed.
Re: Buttons inside a Form
i think you posted this in the wrong topic
Re: Buttons inside a Form
This solution (window.close) will only work in firefox when the window was opened from a piece of javascript code. So when your window is called from a another SC componentn, you should be save.
When you open a SC form by entering the url in the browser, then the window won’t close. There is a workaround* in Firefox, but this has to be set for all users of your application.
- in C:Program FilesMozilla Firefoxgreprefsall.js
Change this setting to true: pref(“dom.allow_scripts_to_close_windows”, false);