Hi, how are you all doing. Hope you all are doing great. I'm looking for a way to invoke a JS function intto a codeunit.
I created a JS function that takes a Text/String parameter and also returns a Text/String value. I invoked that procedure on a page using currpage.controladdinName.JSFunctionName(txt); It's working fine on the page.
But when I call this function in one of my codeunit then it gives an error. Can't implicitly convert from type 'None' to Text.

Can anyone please tell me how to get rid of this error. Answers will be highly appreciated.
Thanks for reading.