How to disabled a radio button list - formio

The issue I have is that using Logic, if my trigger has an action that disables my component. The fact the trigger is false, makes it enable my component.
If fieldA value = 99 then disable fieldB. But it Field A is 10, then fieldB is enabled no matter what. I wish there was a way to make it so triggers were not if/else.
So I need to disabled a component with JavaScript. If I try fieldB.disabled = true; it just comes back with true, but the radio button list is not disabled.

Related

Bootstrap-Vue B-Form-Checkbox not reacting to clicks even though it is enabled

My bootstrap-vue b-form-checkbox is not reacting to clicks and does not change value.
Use of b-form-checkbox in template:
<b-form-checkbox
v-model="showArchived"
>
Show archived reports
</b-form-checkbox>
Binded property in the script:
data() {
return {
showArchived: false
};
},
What can be the problem? I tried setting disabled to false (didn't help, setting it to true does change styling, so I conclude the checkbox is enabled by default as it should), tried adding id or name properties, but it didn't help either. It's the only checkbox in the component.
The problem was cause by one of parent components having #click.prevent. Removing prevent made the checkbox reactive again.

Null Values in Checkbox Custom Fields

I'm noticing that editing a matter from the web interface and adding a checkbox custom field to the matter does not automatically set that checkbox to 'false.' Instead, unless you set the box to true, save it, and then re-edit it to uncheck that box, you cannot get a subsequent api call to return a 'false' value.
It strikes me that this ought to be corrected?
This is Matt G. from Clio's API support team.
You're correct that checkbox custom fields don't return a false value unless thy're actually toggled on and then off. Until some value is set, the checkbox field won't have any information stored in it and will return a null value.
We'll evaluate the functionality and look into updating how checkboxes work. In the meantime, if you want to get records of all Matters with an unchecked checkbox, you can look for Custom Field Values that are false and null.

Orbeon: reset value of hidden field

I have an autocomplete field and radio buttons which have a visibility condition, is there any possible way to reset their value when the visibility condition is false оr to somehow get information about the visibility of those fields (something similar to /text() or /#label)?

Access Form with checkbox toggled textboxes to make visible

Im trying to cut down on the clutter of my form since the data im getting can fill in more or less fields from my table.
as of right now im trying to build an event but I do not know the right syntax to use to create my event.
right now i have:
= if toggle.onclick ="yes" then
data.visible=true
else
data.visible=false
end if
in the After Update tab of the Event tab.
I hope that gives you an idea of what im trying to do.
I have this on a test form so the only objects are:
checkbox name "toggle"
textbox name "data"
the text box is default to not visible at the moment.
my goal is to have a list of check boxes and once they are checked their corresponding text box would appear on a refresh. this way the workers wont be intimidated by the amount of textboxes are on my current form. also will reduce the vast clutter on the current form.
By default, the 'Toggle' value will be True or False - not 'yes' or 'no'. Thus the following is what you need to toggle fields:
Private Sub Toggle_AfterUpdate()
If Me.Toggle = True Then
Me.Data.Visible = True
Else
Me.Data.Visible = False
End If
End Sub

GWT how to change textbox without running change handler

I am using GWT. I have a textbox and a drop down list box that have change handlers on them. I also sometimes change the text or selected value from the source code but I don't want the change handler to run when I do this, I only want it to run when the user changes it.
How can I implement this?
For the TextBox, use setValue(T value, boolean fireEvents) using false as second argument, to avoid firing any ValueChangeEvent.
For the ListBox, when you call setSelectedIndex(int index) or setItemSelected(int index, boolean selected) the ChangeEvent is never fired, so you are free to use them programmatically and rely on the ChangeHandler on user action.