• New Commercial Services Section

    We have now opened a commercial services section here on the forum. If you have a Fabrik project that you wish to have someone work on for you, post it under Help Wanted. If you are an application developer and wish to earn some money helping others, post your details under Fabrik Application Developers.

    Both of these are unmoderated. It will be up to both parties to work out the details and come to an agreement.

[Solved] unlock fields based on combined box value

Have you tried using the "readonly and "not readonly" actions on Javascript events on the 'titolo' element?

-- hugh
 
Hello
I tried but I can not.
in practice I left fields 2 and 3 read-only.
On the 'titolo' element, on Javascript actions how should I set the code?
thanks
 

Attachments

  • 2018-03-28.png
    2018-03-28.png
    28.5 KB · Views: 26
You'll need four JS events

if this element = A readonly camp02
if this element = A readonly campo3
if this element = B not readonly campo2
if this element = B not readonly campo3

-- hugh
 
I entered, but it does not seem to work.
if this element = A readonly a_tabella1___campo2
if this element = A readonly a_tabella1___campo3
if this element = B not readonly a_tabella1___campo2
if this element = B not readonly a_tabella1___campo3
do you need some brackets?
 
No, I didn't mean use that as literal code. Set up your individual JS events so they match that description.

So the first event:

Event: change (or click)
If this element: ==
Value: A
Action: readonly
Element: campo2

... then add three more for each other action.

-- hugh
 
It looks like you only added the two events to set "not readonly" if the value is B. You haven't added the two events to set them "readonly" if the value is A.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top