Hi all,
I have a form with quite a few text fields. I would like to be able to update their captions programatically using JavaScript at design time.
I don't know how to address design time objects.
Any help would be highly appreciated.
Kamil
Solved! Go to Solution.
Views
Replies
Total Likes
At Design time you genrally cannot execute JavaScript in Designer.
The only option would be a macro, which requieres Designer ES2 or ADEP Designer.
A macro is a javascript file stored in a subfolder of Designers program folder, which can be executed at design time.
Here's a macro with a flex dialog I designed to manipulate fields at design time:
http://thelivecycle.blogspot.com/2011/06/field-designer-macro.html
Views
Replies
Total Likes
Kamil,
Here is a sample for a text field with the fully-qualified name form1.page1.subform1.tf.
xfa.resolveNode("form1.page1.subform1.tf.caption.value.#text").value = "Favourite Soccer Team";
Sample attached. Note, it is possible to do bind captions to source data.
Steve
Views
Replies
Total Likes
Hi Steve,
Thanks for taking the time to assisst me.
As I mentined before, I would like to change the caption in design view. This means that I want to start with:
and after running the script to end up with:
in Live Cycle Designer.
Hope it makes sense,
Kamil
Views
Replies
Total Likes
At Design time you genrally cannot execute JavaScript in Designer.
The only option would be a macro, which requieres Designer ES2 or ADEP Designer.
A macro is a javascript file stored in a subfolder of Designers program folder, which can be executed at design time.
Here's a macro with a flex dialog I designed to manipulate fields at design time:
http://thelivecycle.blogspot.com/2011/06/field-designer-macro.html
Views
Replies
Total Likes
Views
Likes
Replies