Is it possible to set a form field added with scri...
# suitescript
w
Is it possible to set a form field added with script with the property "Same row as previous" like you can do on ordinary forms? I want to add a checkbox on the same row as an existing select field.
b
the answer is yes, though you will not like the trial and error involved
you should be able to do this via Field.updateLayoutType
if you are very unfortunate, then you may have to also use it in combination with Field.updateBreakType
w
Hmm, ok so it's a combination of the two. I tried each option for both of them separately, but had no luck.
I guess I'll have to try all permutations.
b
The ordering of the fields matter
👍 1
The first field should be in the start row and the one after it the mid row
w
I figured it out, I had to update both my own field and the standard field. But when I figured it out, I realised that I couldn't have client scripts on classification-records anyways. 🤦‍♂️ I wanted the checkbox to disable the other field and make it non-mandatory.