-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ReadOnly Field on selection change of select field. #966
Comments
Could you provide a jsfiddle to demonstrate the issue? |
I am quite new at JS but I will try to create a Fiddle and share it. In mean time let me explain what i am doing. So long story short. When I select an item from Select field I want to update a RO field with some values based on what I have selected. Is it even possible or do I have to keep as Editable fields? By the way, I am sorry for the long explanation, i just want make it as clear as possible. |
Here is jsfiddle: https://jsfiddle.net/cpm8ze6t/ |
Checkout the comment to the issue #71 (comment). |
Hi, thank you for your help. Yes your are right that it is similar to what I am looking for. But in this fiddle http://jsfiddle.net/n982uvx1/19, I want to keep the Team column read only and dont want it as Select field. It working perfectly with the selection change but I don't want user be able to change the value which is auto filled by selection in Department Field. Please let me know if I am still not making it clear in what I am looking for. |
@codemakeup - did you find a solution to your problem? (your fiddles are gone) I'm facing the same issue right now... In my words: the problem seems to be that there is no editControl if the field is set to editing = false - so I guess another question would be if editing true|false can by dynamically changed (i.e. true right before the .editControl.val(...) call and back to false right after? |
@arminus - I didnt find any solution yet. My app is still in dev so I am keeping the fields in Edit mode. If what you are saying works (editing true|false can by dynamically changed ) that could solve the issue too. |
Hi, after looking a lot of your suggestion I have come so far that I am able to update a text field where editing = true when I change the selection on select field. But I want to keep that text field editing = false.
Below is working code where I want to make "Unit" field as ReadOnly and still able to update from Selection Change of "Item" field .
The text was updated successfully, but these errors were encountered: