is it possible to add a button inline to a form, a...
# suitescript
r
is it possible to add a button inline to a form, and not to the top of it?
m
You can do it using just a custom inline html field and building a dynamic URL. This show how to do in a saved search but be the same formula used in an inline html field https://www.mavencloud.tech/blogs/post/add-buttons-into-saved-searches
r
hm... okay, so no native way then. I was hoping I was just missing where it was documented.
m
I’m not sure what you mean by “native”. But button placement depends on the context in which you are adding them button If via workflow then , no ,workflow buttons only appear at the top If via script then yes you can deploy the button almost anywhere on the form The native buttons cannot be moved accept via workflow or form customization. What is your use case?
r
the use case is just that I want to ease work flow for users to add a button inline on the form, then when clicked will update a checkbox field value, instead of the 3 action current requirement of • edit record • check box • save record
it's a time saving measure related to how often we're interacting with records.
m
Yeah a workflow would be a quick easy way to do that but the button would be at the top of the form A script would be a more difficult alternative but not super complicated. (Probably an easy script to write for a developer) Also you might want to consider inline editing in a saved search. That would be even faster
r
I appreciate link. I can clone button markup to make an inline button, was just double checking to see if I was missing a native way (ie, form.addButton() or something) to add a NetSuite button to a specific area, instead of just adding one, and having it appear at the top of the form
j
I ended up writing my own reusable fn to generate the code to make a button since it’s so often that I want a bunch of buttons midway down the page in a Suitelet.
r
yea, that's probably what I'll end up doing as well, just to improve flow and make user experience easier.