The SmartBuilder side is the same (getting the text from an Input Field), but if you're using an LMS, you need to use the SCORM blocks, and make sure that when you publish the lesson, you choose a SCORM option.
SCORM has a thing called "interactions" which are meant for reporting learner answers. SCORM 1.2 (older) and SCORM 2004 (newer) differ a bit, but here's what you would use if your LMS supports SCORM 2004 (see attached image).
For more information on SCORM communication, check out this video here
Where your LMS displays that information varies greatly from LMS to LMS. If you're searching in your LMS's documentation, look for where "interactions" are displayed / reported.
Hope that helps!