Eval function line break/ word wrap - InfoPath Dev
in

InfoPath Dev

Eval function line break/ word wrap

Last post 01-09-2018 02:41 PM by NathanWynn. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-13-2014 02:55 AM

    Eval function line break/ word wrap

     Hello guys,

     I would like to know how  I can use a word break in the eval function in Infopath.

    My function looks like that: eval(eval(field;";")..) etc. Can I use the line break/word wrap within this function?

     Many thanks in advance!

    Matthias

  • 11-19-2014 05:44 PM In reply to

    Re: Eval function line break/ word wrap

    I've used an XML file with special characters before - not sure if that would work in a double eval. As to word wrap - if this is a browser form, I've seen some occasional issues with word wrap in calculated values. You may have to use a read only text box instead.

    Hilary Stoupa

  • 01-09-2018 02:41 PM In reply to

    Re: Eval function line break/ word wrap

    I have timeEntry (repeating) [Date] & [HoursWorked] I have a Summary textfield, I added this as the formula for Summary: xdMath:Eval(xdMath:Eval(../my:timeEntry, 'concat(my:Date, ": ", my:HoursWorked, ";")'), "..") 2018-01-09: 8;2018-01-10:9; .... Now, instead of ';', I would like to add a line break so I attempted adding xdXDocument:GetDOM("NewLine")/linebreaks/newLine xdMath:Eval(xdMath:Eval(../my:timeEntry, 'concat(my:Date, ": ", my:HoursWorked, xdXDocument:GetDOM("NewLine")/linebreaks/newLine)'), "..") and I tried xdMath:Eval(xdMath:Eval(../my:timeEntry, 'concat(my:Date, ": ", my:HoursWorked, xdXDocument:GetDOM("strings")/characters/@crlf)'), "..") None of the method above worked. Please advice!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.