Email and Comment Requirement (Options)
API reference for email and comment requirements on Luciq bug reports. Email is required by default while the comment field is optional.
This API is to manipulate email and comment fields requirement. By default, users will be required to enter their email but the comment section will be optional. This method can take any number of arguments with the arguments being Options.
The comments section can be required for a user to send a bug and the email field can also be hidden or set to optional. Below are all the options:
Hide email field on new bug/feedback page
Show email field on new bug/feedback page but only optionally
Require user to fill comment field before submitting new feedback or bug
Method
BugReporting.bugReportingOptions = .emailFieldOptionalLCQBugReporting.bugReportingOptions = LCQBugReportingOptionEmailFieldOptional;BugReporting.setOptions(Option.COMMENT_FIELD_REQUIRED);BugReporting.setOptions(Option.COMMENT_FIELD_REQUIRED)BugReporting.setInvocationOptions([BugReporting.invocationOptions.emailFieldOptional, BugReporting.invocationOptions.commentFieldRequired]);BugReporting.setInvocationOptions(InvocationOption.emailFieldOptional)Options Parameters:
//Hide email
.emailFieldHidden
//Show email as optional
.emailFieldOptional
//Make comment required
.commentFieldRequired
//Disable post sending dialog
.disablePostSendingDialog
//No option
.none//Hide email
LCQBugReportingOptionEmailFieldHidden
//Show email as optional
LCQBugReportingOptionEmailFieldOptional
//Make comment required
LCQBugReportingOptionCommentFieldRequired
//Disable post sending dialog
LCQBugReportingOptionDisablePostSendingDialog
//No option
LCQBugReportingOptionNone//Hide email
Option.EMAIL_FIELD_HIDDEN
//Show email as optional
Option.EMAIL_FIELD_OPTIONAL
//Make comment required
Option.COMMENT_FIELD_REQUIREDLast updated