* Return a string in standard URL-encoded notation with the form input values, with localized values. * The default output format can be overridden by passing the option as a parameter. * * @param {null|string} forcedOutputFormat If set to something different from `null`, then this is
(forcedOutputFormat = null)
| 3230 | * @returns {string} |
| 3231 | */ |
| 3232 | formLocalized(forcedOutputFormat = null) { |
| 3233 | let outputFormatToUse; |
| 3234 | if (AutoNumericHelper.isNull(forcedOutputFormat)) { |
| 3235 | outputFormatToUse = this.settings.outputFormat; |
| 3236 | } else { |
| 3237 | outputFormatToUse = forcedOutputFormat; |
| 3238 | } |
| 3239 | |
| 3240 | return this.constructor._serializeLocalized(this.form(), this.settings.serializeSpaces, outputFormatToUse); |
| 3241 | } |
| 3242 | |
| 3243 | /** |
| 3244 | * Return an array containing an object for each form <input> element. |
no test coverage detected