Say you had a combobox like this one:
How would one allow the user to delete an entry listed in the combobox? What element would you add, such as an additional button, context menu ...?
I think small 'x' mark at the right side would be sufficient here.
However I think better solution is to use something like select2: https://ivaynberg.github.io/select2/
.
I believe users are more familiar with this kind of input.
When generate a list of radio (with a dropdownlist), it will select a default value automatically.
But I do not want to select any values as default, how to set this?
Thanks.
The only way to solve this from Studio is to add an empty row to your drop down list. If this is not preferred, then I would follow Jim's suggestion to affect all the drop downs to not contain a default value. To get the wanted affect to this single drop down then JavaScript code would be the proper tool.
Thanks.
It will be radio buttons. Not a drop down list.
As far as I'm aware there's no way to set this in studio.
You can set this in the database as a quick and dirty fix:
UPDATE fields_meta_data SET default_value = '' WHERE id = 'IDOFCUSTOMFIELD';
Nicer, but more involved would be to create a custom version of
modules/DynamicFields/templates/Fields/Forms/enum.tpl
which allows choosing no default value.
One way we've done this by adding a value in studio of "please_select" with a display label of "-please select-" and make this the default.
This way it's obvious when staff are looking at the record that it's not filled in, and we use workflows and reports to catch the exceptions and raise the alert to the appropriate person/s.
I have found a solution to this, although I would like to stress that I would not recommend this as a best practice.
I was using SuiteCRM 7.2.3, and Sugar 6.5.20. So not sure whether this will work in later Sugar Versions.
Create a Radio Drop Down Field
Create your drop down list
Save it
Go back in the dropdown editor and find your dropdown list: In my
example, I had options, 0, 1, and 2.
Create the same options again only as 3, 4, and 5.
Now delete options 0, 1, and 2.
Save the dropdown
MAKE SURE you don't save the field again after you do this, only the dropdown list.
Now go look at the field in the EditView and you'll see that no option is selected. Worked every time I did this. Nothing shows up in the DetailView, so I'm assuming NULL is being passed to the DetailView in this instance, but I'm not 100% sure.
I am trying to create a dropdown in AbyyFlexicapture.
The dropdown should be filled from database (i have external DLL ready to do the job) or with fixed values. The problem is I cant find the appropriate element for the job. All i found (the closest) was checkbox group, but I dont know how to use it (add items programaticaly). The documentation on this is very poor ...
Any help would be appreciated!
Figured it out. You just push data to textbox with query and it gets auto-converted to dropdown. But theres no way (at least known to me) how to set up default selection...
Look at the IField.Suggest() method.
Is it possible to add filter text to NestedList's header? You can see what exactly I mean here:
http://www.sencha.com/forum/showthread.php?130609-Filter-text-in-NestedList
I would like to create a search functionality on NestedList. Whe user would insert character it would create a RPC call and return search result.
Is that possible to create and if yes - how?
best
It looks like you can set the toolbar property on the NestedList when you create it to customise it. You don't have to worry about the back button as the NestedList will add this in for you.
I am trying to implement a custom column which should be shown in edit-mode (as readonly), but not in Add-mode. Is there a possibility to do that?
Thanks
You can enable/disable any row of the Add/Edit dialog inside of the beforeShowForm method. Look at the answer for an example.