Skip to Content Skip to Menu

auto actions

10 years 6 months ago #244442 by ninokorinteli
auto actions was created by ninokorinteli
Hi,
i have a single select drop down field cb_projecttype with values 'stage', 'film', 'TV', 'web' and 'other', when 'other' value is selected text field cb_other appears to be filled in.

I created auto action for field
trigger: onAfterUserUpdate
condition: cb_projecttype = other
field cb_projecttype set(field=value) [cb_other]

so on updated profile cb_projecttype displays value of cb_other, works great on profile display and edit

But it doesnot work on user lists, when i select 'other' from cb_project drop down in user search it returns no results, it's understandable the value is overridden.

I was wondering is it possible to create another auto action so that if 'other' value is selected in user list search, results would display those users who didnot selected 'stage, 'film', 'TV' and 'web' from cb_projecttype (ie values other then 'other') on their profiles? and how? Or any other way to make it return results?

could you advise please
thank you
nino

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 6 months ago #244443 by nant
Replied by nant on topic auto actions
Saturday morning here ... but here is an initial response ....

ninokorinteli wrote: Hi,
i have a single select drop down field cb_projecttype with values 'stage', 'film', 'TV', 'web' and 'other', when 'other' value is selected text field cb_other appears to be filled in.

I created auto action for field
trigger: onAfterUserUpdate
condition: cb_projecttype = other
field cb_projecttype set(field=value) [cb_other]

so on updated profile cb_projecttype displays value of cb_other, works great on profile display and edit


What this Auto Action is doing is to basically force your cb_projecttype drop-down single select field to a value that is copied over from the cb_other field (which I am guessing is a text type).

I would not do it this way as it will mess up your searching on your user lists which is geared off the value list you specified for your drop-down field (and knows nothing about your auto action).

But it doesnot work on user lists, when i select 'other' from cb_project drop down in user search it returns no results, it's understandable the value is overridden.


Yup.

I was wondering is it possible to create another auto action so that if 'other' value is selected in user list search, results would display those users who didnot selected 'stage, 'film', 'TV' and 'web' from cb_projecttype (ie values other then 'other') on their profiles? and how? Or any other way to make it return results?

could you advise please
thank you
nino


You could just edit your user list to have advanced searching (make sure that your cb_projecttype is set to searchable) and then just exclude the values you do not want in frontend search options.

You can also just create a new user list that dynamically does the filtering you need.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum