JavaScript API Webresource using getformcontext for getting Text field value or option set value