EditText():hasDefaultValue()
Check whether the text field was created with a default value.
Signature
hasDefaultValue(): boolean
Returns
boolean - true when a default was passed to EditText(id, hint, defaultValue).
Example
local field = EditText(2, "Search", "cats")
if field:hasDefaultValue() then
toast("Starts with: " .. field:getDefaultValue())
end