Hi Guys I'm Trying to generate a GUID for a FTP co...
# suitescript
r
Hi Guys I'm Trying to generate a GUID for a FTP connection. but my suitelet return the password as plain text. is there something I am missing.
Copy code
const credField = form.addCredentialField({
        id: 'custpage_password1',
        label: 'Password1',
        restrictToDomains: ['<http://XXXXX.app.netsuite.com|XXXXX.app.netsuite.com>'],
        restrictToCurrentUser: false,
        restrictToScriptIds: 'customscript_rs_fedex_ftp_testing_sl'
      });
post
Copy code
var password1 = request.parameters['custpage_password1'];
      log.debug('password1', password1);
b
password should be a guid unless you did something like set the field while ignoring field change
that said, its more practical to use Secrets Management