how to clear the value of field using oncelledit client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 08:22 PM
Hello,
I have two fields in place. If i select the Material category as "Engineering Services" then Material description shows related to Material category but if i select other category then Material description won't get clear so need clear the description also.
These two fields are under one Macro.
Would it be possible by using oncelledit client script ?
Thanks regards
Suyog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2017 08:32 PM
I assume clear value will not work on cell edit. you may need to use business rule to set values blank.
you can try this and check
put alert inside and see whether it goes
g_form.clearValue('u_cell');//replace u_cell with your field name
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2017 03:59 AM
Hi Suyog,
Have you got the solution?
g_form.clearValue() will not work in alert() as well as if you try to write g_form.clearValue('<ur field name>'); this will also not work.
you need to play with "saveAndClose".
if you make "saveAndClose= false" then value will not save and if "saveAndClose= true" then it will save.
Let me know if you have any further question.
Thanks,
Harshvardhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2017 09:40 PM
Thank you Harsh for giving reply. I will try this solution but will it clear the field value of Material description ?
Thanks
Suyog