This is for adding a clear button to form for users to clear all field values and it's tested in IdentityIQ v7.0.
<Button action="next" label="Submit"/> <Button action="cancel" label="Cancel"/> <Button action="refresh" label="Clear"> <Attributes> <Map> <entry key="Rule" value="rule:Clear-Button"/> </Map> </Attributes> </Button>
Line #28: Form.Section section = form.getSection();
Always return the first section of the form. If the fields you want to clear exists in other sections, please use form.getSection(int index);
Happy coding
Is there a way to add a script to a button instead of a rule?