Multi-parameter assignment in View?


#1

List,

I’m trying to create a composite field in my view, similar to how
datetimes are handled, but for a US 10-digit phone number.

I’d like the view to display 3 text inputs in the format ( ___ ) ___ -
____ and then concatenate the results into the Person.phone field.

Is there a way to make this automagically happen (like datimes)?

Thanks for your help,
Ed C.


#2

Hi Ed,

Ed C. wrote:

I’m trying to create a composite field in my view, similar to how
datetimes are handled, but for a US 10-digit phone number.

I’d like the view to display 3 text inputs in the format ( ___ ) ___ -
____ and then concatenate the results into the Person.phone field.

Is there a way to make this automagically happen (like datimes)?

Not yet. Easy answer for today is to include all four fields in your
model,
put the three you want the user to fill-in in your view, and then do the
concantenation of those in your controller.

hth,
Bill