
deepak k. wrote...
You can use fillable text box in disabled mode(disable via rule).
You mean - derive/calculate the entire paragraph as a part of Javascript and assign it to a textbox ?
Well - I did think of this option earlier but I had to let that go because
1) The actual content (paragraph text/language) is in the Javascript. Which means I can't let my business users have control over it OR i can't use the dictionary for multi-language support.
2) I won't be able to handle RichText as TextBox would typically only capture plain Text.
I am actually working on another work-around and unfortunately I haven't been successful so far
I am creating a static text - "Your Credit Card allows you to Withdraw {DollarAmount} dollars".
I am trying to use Rule Editor (Code Editor mode) to write a rule on Initialize event to replace the string {DollarAmount} with the actual value.
Here's what my rule looks like
var strVal = this.value ; // this gives me the static text value strVal = strVal.replace("{DollarAmount}","$10000"); alert(strVal); this.value = strVal; alert("After");
The problem is all the lines are getting executed. I am getting both the alerts, but the rendered Adaptive Form wouldn't update the Static text.
Any idea why it wouldn't let me set the value of TextDraw (static text) element?
Thanks,
Priyank P