Set field value - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Set field value

Last post 06-22-2018 11:23 AM by Wheels. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-13-2018 02:12 AM

    Set field value

    Hi

    I want to conditionally set a Field value when a specific dropdown choice is made.

    In my dropdown I have the following columns

    ID, Display Name, Type

    The display name is what’s shown in the dropdown field.

    I want myTextField to = ‘Cert’ when (Type=’VAC’ and  dropdown field = the secondary source).

    I think I am partially there but the problem is that I can appear to set a static value when using the Action.  

     

    I've attached a screenshot of Actions and her is the XPath

    ../../my:SectionDevFields/my:GradCert[../../my:SectionSelectUnit/my:SelectUnit = xdXDocument:GetDOM("CLMUnits")/dfs:myFields/dfs:dataFields/tns:GetXMLResponse/tns:GetXMLResult/InfoPath/OriginalData/clm_units/PaperReferenceTitle and xdXDocument:GetDOM("CLMUnits")/dfs:myFields/dfs:dataFields/tns:GetXMLResponse/tns:GetXMLResult/InfoPath/Data/clm_units/Type = "VAC"]

     

     

    Thanks 

     

     

     


  • 06-22-2018 11:23 AM In reply to

    Good afternoon OJ.

    It appears that you are combining your Condition and Action.

    You want ot do the following:

    • Select the field (GradCert).
    • Click Manage Rules - InfoPath 2013 (or set up a rule).
    • In the Condition, select SelectUnit is equal to PaperReferenceTitle And (button) Type is equal to Vac (Type a Text).
    • Select the Rule type Action, and click Add.
    • Click Set a fields value.
    • Select the field (GradCert) under the Field box, and set the Value to Cert.
    • Click Ok.

    Have a great day, WHEELS 

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