- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 10:49 PM
Hi Experts,
i have created a UI Action that is supposed to reset all the fields in the form while creation .
below is the code
if(current.isNewRecord())
{
current.setWorkflow(false);
current.autoSysFields(false);
current.u_phone="";
current.u_type="";
action.setRedirectURL(current);
}
the code above is performing reset functionality but once its pressed Submit button disappears.
please find below screenshot
once i press reset , submit is gone and UPDATE and DELETE comes up
Any idea what is the reason of this behaviour
Kind Regards,
Deepansh
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2017 04:20 AM
So you need to get it validated at client side. You must use the "client" check box present in the UI Action record. And then call a function from "OnClick" field. And you will be using the client side global variables (g_form,g_user) but not server side global variables (Current,previous).
See the screenshots below, i have created a scenario based on your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 11:11 PM
path is system properties -> User Interface properties
am i correct?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 11:08 PM
Hello Deepansh,
first of all i think you are also using current.update(); as it will insert the current record.
If you want to make this UI Action visible on the existing record as well, then please remove the code "current.isNewRecord()" from the condition field in UI Action, use it inside the script field only.
Regards,
Gaurav Talreja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 11:09 PM
Done that
but still same behaviour

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 11:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 11:21 PM
After you click reset other buttons are still there?
i am unable to see submit button there