question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Submit button should not be visible in readOnly mode

See original GitHub issue

Even with the readOnly prop with a true value, the form renders with the submit button visible. This happens for all the forms with template display as form.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
franke-mccommented, May 7, 2019

You can try something like this, in Button Component, Conditional, Advanced ->

show = !!((instance.root.options.readOnly !== true)
       && (instance._disabled !== true)
       && (submission.readOnly !== true))
0reactions
mrcportillocommented, May 2, 2019

Great, I’ll.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Making all form inputs to be in readonly mode while clicking ...
When I click the submit button it hides the submit button and shows submitting text. But it doesn't change the input property to...
Read more >
the form you are trying to submit is in read only
i cannot submit my data in the SP list because of this error "the form you are trying to submit is in read...
Read more >
HTML attribute: readonly - HTML: HyperText Markup Language
The Boolean readonly attribute, when present, makes the element not mutable, meaning the user can not edit the control.
Read more >
How to disable or enable buttons using Javascript and jQuery
Learn how to enable or disable buttons using javascript and jQuery based on whether the input field is filled or empty.
Read more >
lightning-record-edit-form - Salesforce Developers
Read-only fields, such as the record ID, can't be changed in a form. If you include a read-only field in a form, it's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found