Jump to content
Sign in to follow this  
Andy103

Operation on radio buton selection

Recommended Posts

Hi,

I am a Biology major with zero programming experience. I've just started using File maker and I'm creating a database for an online store in which, I have provided my customers the opportunity to pay via credit card.

In my database, I have two sets of addresses: 1)Billing address 2) Shipping address.

I've put in a radio button to check whether both addresses are the same.

If the radio button option selected is Yes, I would like the address details entered in the billing section to automatically copy themselves to the shipping address fields.

If the radio button option selected is "No" I would like my representative to be able to enter text into the shipping address fields manually.

I've tried setting the shipping address field type to calculate but that doesn't allow me to manually enter data if my option is "no".

what should the radio button type be?

Could anybody propose an easy way for me to do this??(A sample code would be really helpful)

Thanks

Andy

Share this post


Link to post
Share on other sites

You will want to use a text field with the Auto-Enter option of 'calculated value' for shipping. (Not calculation field)

Case ( radiobutton = "Yes"; billingaddress; "")

Make sure that 'Do not replace' is unchecked.

Share this post


Link to post
Share on other sites

You can use Case( ) but the Condition isn't very complicated.

IF the field "USE BILLING ADDRESS FOR SHIPPING" - YES

Then go through a series of Set Field(Shipping Address to = Billing Address)

Do that for each of the fields you want to copy billing information into shipping fields

I hope that helps you.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.