Is there way to allow end users can add/remove the choice options for a particular field in a form?

sujip
Kilo Contributor

Hi All,

For one of the Scoped application, we have Contract summary form,  In this form there is a field called " Project Name " -- This field  is dropdown with the list of options.

Now the requirement is, Is it possible to allow end users can add/remove the options for this only particular field?

find_real_file.png

5 REPLIES 5

asifnoor
Kilo Patron

Hi,

It more depends on the UI, on how you wanted to provide add/remove options.

You can add/remove the option from the dropdown using client script like this

g_form.removeOption("your_field_name",newValue);

g_form.addOption("your_field_name","yourValue","Label of that value");

Mark the comment as a correct answer and also helpful if it helps.

sujip
Kilo Contributor

Hi,

 

Normally admins can add options to that field but is there a way for end users can add new options to that field?

Directly No. But with customizations like having a new table and providing write access on that table so that users can go to table and modify options, then its possible.

Mark the comment as a correct answer and also helpful if it helps.

Eeson
Mega Guru

Hi,

For particular use cases where you wish a roled user to control the contents of a dropdown, we store those records in a custom table and allow the roled users to update the table. Any changes in the custom table are then reflected in the choice selection.

I assume this is a custom scoped application.

For regular updates of data, store those choices elsewhere is one method to do so.

 

Iain