Hide edit (penicl) icon on currency field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2016 12:40 PM
I want to hide the "edit"/pencil icon on a currency field in procurement. I find that when users edit the price using the edit button instead of just changing the value in the field, the price isn't triggering the client scripts or business rules to update the total price. I want to remove this button as users do not need to be redirected to another window in order to change the price. I want them entering the value within the field itself. I found this article a while ago which works well in Fuji:
How to hide the 'edit' link on currency field on a form
But this does not work in Geneva UI16. When I tried it, the button would hide temporarily and then reappear (see my post below.) Anyone know how to remove this button? I'd love it if the answer was to set an attribute on the field but I'm doubtful it's that easy. I do not want to set the property to make everyone use the same currency as we do require 2 currencies.
In Genevea the edit button shows as a pencil button and it doesn't work the same as in Fuji. If change the display style settings for editLink and currency (same code, just swapping the 2 names), the currency drop down is hidden but the edit button is not.
I've tried inspecting the item in my browser. The id is still proc_po_item.cost.editLink but after my onLoad hides it, it pops back up on the form.
If I add an alert("test"); after the display command, I can see that it disappears until I click "ok" when it reappears:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2016 01:32 PM
Stacey,
Try using $('proc_po_item.cost.editLink').hide(); in your client script and see if it works
Thanks,
Abhinay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2016 01:44 PM
No, that didn't work for me. It does the same behavior--if I put an alert after it, it hides the button and then it reappears after the alert closes.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2016 01:45 PM
Well, that is strange. It is working fine for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2016 01:50 PM
That is strange. So something is different in my form. I'm going to investigate this and see what's loading/running after my onload script (187):
16:49:01 (337)proc_po_item.dorunBeforeRender
16:49:03 (187)proc_po_item.do[00:00:01.810] onLoad Remove edit button on cost field
16:49:03 (188)proc_po_item.do[00:00:00.000] onLoad calcReturn
16:49:03 (218)proc_po_item.do[00:00:00.028] ui_policy loaded
16:49:03 (218)proc_po_item.dorunAfterAllLoaded, functions: 11
16:49:03 (241)proc_po_item.dofireAllChangeHandlers start
16:49:03 (243)proc_po_item.dofireAllChangeHandlers end
16:49:03 (243)proc_po_item.dolate load functions: 3
16:49:03 (247)proc_po_item.do[00:00:00.029] runAfterAllLoaded finished
16:49:03 (419)proc_po_item.doafter page loaded starting
16:49:03 (431)proc_po_item.do[00:00:00.012] after page loaded complete, functions called: 7
16:49:04 (313)proc_po_item.do[00:00:00.008] GwtListEditor onTableLoad, tables examined: 2