anyone please help? i have a checkbox field. if th...
# suitescript
v
anyone please help? i have a checkbox field. if that is field is unchecked, i should add a button (Button1). once i click this button(Button1) then the field should be checked and the button (Button2) should be added.
b
probably want to be very precise on your requirements for this one
the wording you are using also implies an implementation, which requires using dom manipulation
suitescripts's beforeLoad entrypoint which is where you add buttons isnt really dynamic enough to accomplish your task without reloading the page
v
i have a field "sent", if that field is checked, then the button "Reset" should be added. If the field is unchecked, then the button "Send" should be added.
If i click "Reset" button the field "Sent " should be unchecked, if i click the "Send" button, the field "Sent" should be unchecked
the client prefers to have in suiteflow rather suitescript
b
you are asking in a terrible place for suiteflow question
and you will have to deal with the same limitation in suiteflow as suitescript, your workflow can only add buttons on page load
v
ok
b
your ability to accomplish this depends far more on your ability to use javascript than suitescript
suitescript knowledge would only help you identify that this is not something suitescript will do by itself
v
ok