Settings Fields
Textarea
Collect multi-line text, such as certificates or keys, on the NetWizard settings page.
NetWizard Pro feature. This functionality is available only in the commercial edition of NetWizard.NetWizardTextarea displays a multi-line text field on the settings page. Use it for input that is best entered over several lines, such as TLS certificates, keys or other structured data. Its value is a String.

Constructor
NetWizardTextarea(NetWizard* parent, const char* name, const char* value = "",
const char* placeholder = "", bool required = true);Prop
Type
NetWizardTextarea root_ca(&NW, "Root CA", "",
"-----BEGIN CERTIFICATE-----\n-----END CERTIFICATE-----");Methods
getValue()
String ca = root_ca.getValue();Returns a copy of the current value.
setValue()
root_ca.setValue("-----BEGIN CERTIFICATE-----\n...");Sets the value of the field.
See Settings Fields for the methods shared by all fields.
Example
#include <WebServer.h>
#include <NetWizardPro.h>
WebServer server(80);
NetWizard NW(&server);
NetWizardTextarea root_ca(&NW, "Root CA", "",
"-----BEGIN CERTIFICATE-----\n-----END CERTIFICATE-----");
void setup() {
NW.onConfig([&]() {
// validate and store root_ca.getValue()
return true;
});
NW.autoConnect("NetWizard Demo", "");
server.begin();
}
void loop() {
NW.loop();
}