Skip to Content
avatar image
Former Member

Is there a way to see if an input field is set to "read only" using an SAP Personas script?

We are currently developing a Persona and, to make things easier for users, have replaced some input boxes with Persona dropdowns. Using the dropdown plugs a value into the corresponding input box, which is hidden.

However, we've run into an issue: sometimes input boxes are set to read-only, and so using the corresponding dropdown throws an error:

This could be avoided with an if/then statement that checks to see if an input box is read-only, but is there a way to see this with scripting? "Read-only" isn't one of the attributes available in the editor. Is "enabled" equivalent to "read-only?"

sap-error.png (98.5 kB)
enabled.png (129.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 27, 2017 at 06:32 PM

    Yes, 'enabled' should work for this.

    Add comment
    10|10000 characters needed characters exceeded