Skip to content

Conditions in submitButtonText option #12

Description

@albelko

How I can set condition on settings.submitButtonText property? I wanna to set Submit button text depending on object variable questions[0].value.

export const field = { settings: { submitButtonText: function() { return this.questions[0].value ? 'Edit' : 'Send' } }, questions: [ { type: 'text', key: 'field', value: '' } ] };

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions