How do I validate in rule at button click in Infopath 2007? - InfoPath Dev
in

InfoPath Dev

How do I validate in rule at button click in Infopath 2007?

Last post 10-31-2007 10:10 PM by jatuphum. 11 replies.
Page 1 of 1 (12 items)
Sort Posts: Previous Next
  • 10-22-2007 12:55 AM

    How do I validate in rule at button click in Infopath 2007?

    Hi All,

    I use Infopath 2007. How do I validate field by using rule at button click. Because I want to check before set value to some field in form.

    Cheers.

    インフォパス ● デべロッパー
  • 10-22-2007 07:38 AM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    Hi again

    Simplest way I can think of is to set a fields value to X on button click and then your validation on the field includes looking for X before applying the validation.

    Job done I hope

    Cheers

    Adam Harding
    Wales
    UK
  • 10-23-2007 01:14 AM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    Thanks adamrharding,

    I forget to expand about my button. These are my button's rules.

    Rule 1 set value to field.

    Rule 2 submit to Sharepoint Document Library

    Rule 3 Close Form.

    I want to validate entire form, must fill out complete, before start Rule 1.

    I think, may be Condition of Rule 1 .... or new Rule Before Rule 1.... 

    How can I validate entire form?

    Cheers.

    インフォパス ● デべロッパー
  • 10-23-2007 01:38 AM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    Hi

    In that case separate out the rules so that the first rule engages the validation check and the second rule is dependant on the validation check working to allow the SharePoint submit.

    I think that will work

    Cheers

    Adam Harding
    Wales
    UK
  • 10-23-2007 09:05 PM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    Thanks again,

    Now I understand. But I have some problem about using condition to validate field (require field - xxx field cannot blank) in repeating table rule.

    Do you know about it?

    Cheers.

    インフォパス ● デべロッパー
  • 10-24-2007 10:49 AM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    OK

    What sort of difficulty are you having?  I have used validation on a repeating table field before with no problem.

    Cheers

    Adam Harding
    Wales
    UK
  • 10-25-2007 03:45 AM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    Hi adamrharding,

    I use InfoPath 2007. I try to set condition of rules of button before Rule 1 (Above message) fired.

    At first, I go to my button, then select "Button Properties..."

    On "Button Properties" dialog, Click "Rules..." for opening "Rules" dialog.

    On "Rules" dialog, I choose my first rule and then set condion...

    On "Conditions" dialog, I try to set conditions for validate field in repeating table. When I select field and set condition "is not blank".

    It's not work.

    Do you know about other solution?

    Cheers.

    インフォパス ● デべロッパー
  • 10-25-2007 06:36 AM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    Hi again

    Right your problem is that you are only selecting the first field in the repeating table, you need to select "all occurances" that should do it.

    Cheers

    Adam Harding
    Wales
    UK
  • 10-26-2007 04:18 AM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    Hi again,

    How do I select "all occurances"?

    Cheers.

    インフォパス ● デべロッパー
  • 10-28-2007 08:01 PM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    Hi adamrharding,

    Err... I'm not sure about "all occurrances" that you mean?

    Sorry for my misunderstand...

    Cheers.

    インフォパス ● デべロッパー
  • 10-31-2007 10:53 AM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    Hi

    When you choose to select a field to set, there is a drop-down box at the bottom of the window that allows you to select this occurrence, all occurrences, any occurrences.  Use this to select 'all occurrences'

    Cheers

    Adam Harding
    Wales
    UK
  • 10-31-2007 10:10 PM In reply to

    Re: How do I validate in rule at button click in Infopath 2007?

    Hi again,

    Oh! great, I understand.

    You means "Condition Formatting..." of button that want to validate and then set conditions those affect for clicking button. Cool!

    Now I can solve my problem.... . Thank you very much again for your help.

    Cheers.

    インフォパス ● デべロッパー
Page 1 of 1 (12 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.