Skip to Content Skip to Menu

career field

10 years 7 months ago - 10 years 7 months ago #242419 by thewebsurfer
career field was created by thewebsurfer
hi, i have a career field with some preset choices plus a choice 'other' (radio buttons):
- actor
- student
- musician
- drug dealer ( :silly: )
- other

when i click on 'other' a new text field named 'other career' appears (with CB conditional) and the users can set their own career.
all works fine.
but i have a problem with an external php script of mine.

case of study of a user:
- set career:'actor'
- set career:'other' then in the 'other career' field set 'fashion model'
- set again a preset career like 'actor'

now i have a problem: in the db the 'other career' text field stays filled with 'fashion model'..i need to empty the 'other career' field IF a preset career is selected.
Last edit: 10 years 7 months ago by thewebsurfer.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 7 months ago #242429 by nant
Replied by nant on topic career field

thewebsurfer wrote: hi, i have a career field with some preset choices plus a choice 'other' (radio buttons):
- actor
- student
- musician
- drug dealer ( :silly: )
- other

when i click on 'other' a new text field named 'other career' appears (with CB conditional) and the users can set their own career.
all works fine.
but i have a problem with an external php script of mine.

case of study of a user:
- set career:'actor'
- set career:'other' then in the 'other career' field set 'fashion model'
- set again a preset career like 'actor'

now i have a problem: in the db the 'other career' text field stays filled with 'fashion model'..i need to empty the 'other career' field IF a preset career is selected.


One suggestion is to create a CB Auto Action (field type) that conditions off a change of the main career field and if that was set to something other than 'other', then empty the non-preset carrier field.

There are many CB Auto Action examples in our use case tutorials section.

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

Moderators: beatnantkrileon
Powered by Kunena Forum