I am trying to conditionally render fields of a su...
# suitescript
s
I am trying to conditionally render fields of a suitebuilder form using a client script but for some reason it is not behaving as I hoped. Any suggestions?
b
share the code, say whats not working
s
Untitled
@battk at this stage I am just trying to see if the code is even making it past the conditional
b
looks unreasonable
you should get a log everytime a field is changed if the value in custrecord158 is Versa
and a log when the pgae is initialized
s
Thats the frustrating part haha
I do get the log when it is initialized
I checked and the fieldid is what I have in the code
b
what type of field is custrecord158
s
select/dropdown
b
then it will never be Versa
getValue for select fields return the internal id of the select option
getText for select fields return the text of the select option
you probably wanted to log the value you get from the field
or use the debugger
s
@battk Thank you! For some reason that worked on a suitelet form I made and thought I could just reuse it. It is not working