Anyone have a suggestion on my issues with the cus...
# suitescript
m
Anyone have a suggestion on my issues with the custom record/ client script? Still not working on my end. Even though there are articles specifying that it is working.
k
I saw your issue before but had little time. I saw that it was something to do with a client script on a custom record. Can you elaborate?
c
What is not working? Does the code run at all? You can put a console.log in there and or go in through console and step through the script programmatically. Otherwise, if you have the script in the file cabinet, available without login and set on the form's custom code tab as well then thats how you do it.
s
agreed, console.log is the way to go - if you're doing employee search your role that you're testing with will need employee permission since it's the client script.
otherwise you can't have that client side, you'll need to have it server side - in that case it's more like a client script calling a suitelet executing in a role with the employee record permission that'll handle the rest, and the response from the suitelet would be the result of your search. usually worth keeping sensitive stuff server side
m
hey, sorry for late reply my issue is that the custom script is running perfectly on my custom record, but not running on the external form of the custom record.
k
The External Form?? Do you mean an online form?
m
yes
hey Karl
k
You would have to create more functionality in the external form for the client script to work.
Are you using the custom record online forms?
m
yes
k
Just to say guys. I’ve spoken to @Marygolds3 and for his use case an online form is not the way to go. So Suitelet is the only option for this functionality.