Page 1 of 1

Invoking signup service {Radio Button}

Posted: Sat Mar 21, 2015 1:05 am
by Jeremiah Olugbola

Hi i'm having an issue invoking the sign up serivce

I have added extra parameters to the signup service to allow me to gather other information such a first and last name of the user who wants to sign up. However one of the parameters I want to add is the selected value of a radio button which the user chooses see the image to understand what i mean Image

I want to have the user select either the groom or the bride radio button and it saves this into the users collections. I do have the appropriate fields already in the Users collection however I dont know which mapping action I should take when invoking the service. Which property should I map to the parameter "weddingrole" in my sign up service.

Image


Invoking signup service {Radio Button}

Posted: Sat Mar 21, 2015 12:32 pm
by Egor Kotov6832188

Hello Jeremiah,

Your approach is correct - you need to connect Selected to "weddibgrole"
I did clarified example for you.
http://gyazo.com/ef87e45ed584c9afa845... - mapped selected value
http://gyazo.com/0a5d92008a7cecb5f20d... - result, I selected "Item 1" and on button click event added service call, value equals "Item 1"


Invoking signup service {Radio Button}

Posted: Sat Mar 21, 2015 1:10 pm
by Jeremiah Olugbola

Hi Egor,

Thanks for clarifying the first bit.

But I'm not too certain what you mean for the last bit.
Did you add a service call to the button when trying to invoke the sign up service or is the service call added to the radio group?


Invoking signup service {Radio Button}

Posted: Sat Mar 21, 2015 1:16 pm
by Egor Kotov6832188

Jeremiah,

I added invoke service action for button click event, as an example, the point is in:
1) you need to map selected property
2) now you know what will be saved


Invoking signup service {Radio Button}

Posted: Sat Mar 21, 2015 2:41 pm
by Jeremiah Olugbola

Hi thanks for your help managed to fix that issue

When i look at the backend side not all things are being swapped over!
The other radio group which shows options for the wedding type isn't being saved.

Image
Image

Secondly I have a date picker on the page which I would like the user to specify a date, is this mapping correct? (This also doesn't seem to save the value into the database) Image