I created a custom record and maintaining a list o...
# suitescript
s
I created a custom record and maintaining a list of them . My requirement is once i click new button , before adding that entry into the list , it has to check whether the security token is valid or not .For this encryption i need to use the N/Crypto Module . So i created a client script and in the function
saveRecord(scriptContext)
i can write a condition check to check whether token is valid or not before saving . I am kind of stuck here because if its normal condition i can check , But i need to use the N/Crypto module in client script .As client script dont support this module , is there any workaround for this like calling a server script from client script or any other way . Please advice .