Formula set up based on a (field + text +1) - InfoPath Dev
in

InfoPath Dev

Formula set up based on a (field + text +1)

Last post 11-04-2013 06:30 AM by LDavis. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-30-2013 11:20 AM

    Formula set up based on a (field + text +1)

    I'm trying set a field value based on another field plus more information. Can anyone tell me the function used to create this formula? I've tried comcat but it wouldn't allow me to place a number at the end and max wouldn't allow me to use the text.

    Example:

    WO Field: 1111

    PR Field: formula? 

    need it to read WO field+text+1 (1111SHT_1) as drop menu is selected it will increase to (1111SHT_2) and so on.

  • 11-02-2013 07:48 AM In reply to

    Re: Formula set up based on a (field + text +1)

     Well the function is concat, not comcat, but I'm guessing that this was a typo. :)

    What are you trying to increment by 1? The number after the "_"? If so, I'd substring the field's value to get that number only and then add one to it. But a lot depends on where you are executing this rule - attach a sample form under the Options tab and I can give you a hand with the formula....

    Hilary Stoupa

  • 11-04-2013 06:30 AM In reply to

    Re: Formula set up based on a (field + text +1)

    substring(WorkOrder, "SHT14_") + 1 or substring(WorkOrder, "SHT14_", "+1")

    The first one gives NaN in the field and the second one stays blank. I don't see the option tab to attach a sample with.

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