Email format and limitations of some fields - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Email format and limitations of some fields

Last post 01-25-2024 01:02 PM by Hilary Stoupa. 16 replies.
Page 1 of 2 (17 items) 1 2 Next >
Sort Posts: Previous Next
  • 01-11-2024 06:26 AM

    Email format and limitations of some fields

    Hello, Email fields must be written in accordance with the format. "Tax number" must contain only numbers and not exceed 10 characters. "Identification Number" must contain only numbers, not exceeding 11 characters. Also, can we add a second attachment button? I would be very happy if you could help me with the issues I mentioned.
  • 01-12-2024 04:05 AM In reply to

    Re: Email format and limitations of some fields

    Dear @Hilary-Stoupa, can you help me with the issues I mentioned above?
  • 01-12-2024 02:07 PM In reply to

    Re: Email format and limitations of some fields

    You should be able to use validation formulas for your two fields - I've attached a simple sample form for you. For the attachment field - this is a list form, so it can have only one attachment field. That should be repeating, however - I think generally you can attach multiple files.
    Hilary Stoupa

  • 01-15-2024 12:55 AM In reply to

    Re: Email format and limitations of some fields

    Dear @Hilary-Stoupa, Thank you for your support, can you help me with the following issue? The user filling out the form should not see the "Registration Completed" section at the bottom of the form. However, this section is visible to all users and when filling out the form, they mark this section and press the submit form button. This situation causes confusion for the person checking the form. Can we add a rule or another method so that only certain users can see the "Registration Completed" section?
  • 01-15-2024 07:47 AM In reply to

    Re: Email format and limitations of some fields

    Sure. Put it in a section and hide the section unless the username matches the users you want. I'm attaching your form with a sample of this.
    Hilary Stoupa

  • 01-15-2024 12:46 PM In reply to

    Re: Email format and limitations of some fields

    Dear @Hilary-Stoupa, Thank you for your support. Even though I added my own domain account information to the formula, I cannot see the "Registration Completed" section. xdUser:get-UserName() != "i:0#.f|membership|name.surname@domain.com"
  • 01-15-2024 01:01 PM In reply to

    Re: Email format and limitations of some fields

    The format of that value will depend on the environment the form is in. Put a calculated value on the form with the userName() function and open the published form (i.e. if this is a browser form, you need to publish and open in the browser). That will show you the correct value. It may also be the field I bound the section to - I used the ID field. You could always try binding the section to another field. Another thing you might try is changing the conditional formatting to color highlight the section instead of hiding it while you are testing - then you can be sure at least that the section is present.
    Hilary Stoupa

  • 01-16-2024 04:32 AM In reply to

    Re: Email format and limitations of some fields

    xdUser:get-UserName() != "i:0#.w|domain\username1" When I added it in this format it worked, thank you. However, I can add a maximum of 5 users to this section, I need to add 15 users in total, how can I do this?
  • 01-16-2024 07:06 AM In reply to

    Re: Email format and limitations of some fields

    Can you add a few additional formatting rules for your additional users?
    Hilary Stoupa

  • 01-16-2024 07:51 AM In reply to

    Re: Email format and limitations of some fields

    Can you show me with an example how to add the additional formatting rule to the form I shared before?
  • 01-16-2024 08:34 AM In reply to

    Re: Email format and limitations of some fields

    You should be able to just copy and paste your existing rule and modify as needed.
    Hilary Stoupa

  • 01-16-2024 11:13 AM In reply to

    Re: Email format and limitations of some fields

    I copied and pasted the existing rule, but while the rules in Rule 1 work, the copied rule in Rule 2 does not work.
  • 01-16-2024 11:50 AM In reply to

    Re: Email format and limitations of some fields

    Yuck, ok, you'll just need to modify your existing rule to handle for all 15, I suppose. Copy the bottom-most expression out and paste it someplace you can easily work with it, like Notepad. Then you can just use "and" to string together the rest of your conditions and paste it back into the bottom-most condition expression area: xdUser:get-UserName() != "i:0#.w|domain\username5" and xdUser:get-UserName() != "i:0#.w|domain\username6" and xdUser:get-UserName() != "i:0#.w|domain\username7" and xdUser:get-UserName() != "i:0#.w|domain\username8" etc.
    Hilary Stoupa

  • 01-16-2024 12:16 PM In reply to

    Re: Email format and limitations of some fields

    thank you for your support, I was able to add all users and it worked
  • 01-16-2024 04:49 PM In reply to

    Re: Email format and limitations of some fields

    Good job!
    Hilary Stoupa

Page 1 of 2 (17 items) 1 2 Next >
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.