Skip to Content Skip to Menu

Registration form field modification

  • zveruga
  • zveruga
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
8 years 3 months ago #283062 by zveruga
Registration form field modification was created by zveruga
I am trying to split mobile phone field in my registration form into two fields
1. index of the country that i get using query
2.second is the phone number itself

how can i make it work so that when i submit the form , it will combine those two fields together into one and send a full phone number

example in here : www.binaring.com/registration/

please help

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 3 months ago #283073 by nant
Replied by nant on topic Registration form field modification

zveruga wrote: I am trying to split mobile phone field in my registration form into two fields
1. index of the country that i get using query
2.second is the phone number itself

how can i make it work so that when i submit the form , it will combine those two fields together into one and send a full phone number

example in here : www.binaring.com/registration/

please help


You can do some of this using the CB Query field plugin described here:

www.joomlapolis.com/addons/cb-query-field

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

  • zveruga
  • zveruga
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
8 years 3 months ago - 8 years 3 months ago #283081 by zveruga
Replied by zveruga on topic Registration form field modification
can you guide me a little bit more , so i can get the general idea?
what would you do? Because from what i seen it lets you grab existing data and i want to grab data that i fill in the two fields and combine it
Last edit: 8 years 3 months ago by zveruga.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 3 months ago #283093 by nant
Replied by nant on topic Registration form field modification

zveruga wrote: can you guide me a little bit more , so i can get the general idea?
what would you do? Because from what i seen it lets you grab existing data and i want to grab data that i fill in the two fields and combine it


You would have in a database table the country name and the country phone code in different columns.
This is existing data.

You can have a country field and a prefix field that are CB Query field powered. This way when someone selects a country the prefix field is automatically populated.

The combination might be tricky and would involve either css to display boxes next to each other (like in your example) or you might just code a new field plugin from scratch (if you are php aware and cb api also).

You might also be able to utilize CB Auto Actions and maybe a CB Code field to avoid coding from scratch.

Basically there are some CB tools that you could use to code/configure something torwards what you are looking for, but nothing out of the box.

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

Moderators: beatnantkrileon
Powered by Kunena Forum