Comments (1)
Hello,
Note that when you place an ADOR reference using xmp-write-ador, then a two-way connection is created. This means that when the page loads, if the ADOR has also a "read" expression, the field is populated with its value. In case the value of retrieved ADOR is empty, you can use a xmp-default-value attribute which will be used to define an initial value to the referred write ADOR.
In your code:
<input type="hidden" name="answerTotal" id="answerTotal" xmp-write-ador="xmp.r['answerTotal']" xmp-default-value="0">
Regards,
Ohad Cohen
from xmpl-sdk.
Related Issues (14)
- Set default select option
- Register / update page HOT 1
- Add an example in the wiki where xmp is used in another angularJS controller HOT 1
- Issues with the sample SPA code and routing HOT 1
- Update on Load with parseInt to increment visits HOT 1
- 1.9.1 broke xmpResourceDriver HOT 1
- Error loading the data in the getting started HOT 1
- Angular io (angular 2) compatibility HOT 10
- XMPL error
- Documenting iid={{xmp.r['XMPieInstanceID']}} HOT 1
- scope.xmp.recipientID
- Email Visibility documentation incomplete HOT 1
- xmp-clicked-triggered-email deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmpl-sdk.