Expand my Community achievements bar.

SOLVED

Changing field states at form start

Avatar

Former Community Member

Hey there!

Our friend Srini taught me how to change fields states when clicking on an object, using a statement like this:

myField.access = "readOnly";

Well, now I'd like to know how to set fields and other objects states so they start, for instance, as readOnly by default when the form is opened.

Possible?

Where do I insert the code?

Thank you!!

Marcos

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

No code is required ...click on the object in question and on the Object palette choose the Value tab and the 1st dropdown called Type will have the settings that allow you to set the initial state of the field.

Paul

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

No code is required ...click on the object in question and on the Object palette choose the Value tab and the 1st dropdown called Type will have the settings that allow you to set the initial state of the field.

Paul

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----