I have a LiveCycle form where I am embedding a sample XML.
I want to know hoe to map the field values to the sample XML so that when the user clicks on the submit as XML button the submitted XML should carry the values bound within the form field tags.
Thanks.
Bibhu.
Use the bind tag within each field object in your form to point to your sample xml data. LiveCycle Designer can do this for you (data panel->new data connection->sample xml->drag and drop xml objects to your form fields).
Related
I need to update the form field value using javascript as below:
var frmRec = App.frmEdit.getRecord();
frmRec.set('CallingName', 'Tesing calling name');
When I check the form data via the console, I can see the calling name field is updated:
console.log('rec: ', App.frmEdit.getRecord());
But the textfield in the form is not updated, old values still show up in the form. How can I "refresh" the value of the TextField in this case ?
Thanks in advance
If your data binding is setup correctly there is no need to refresh anything. The Extjs form supports two-way binding change to the record would be reflected in the text field and any change to the text field would be updated in the record.
two way binding example
The kitchen sink examples have lots of data binding examples.
I have the need to create the custom form field which need to works like TemplateColumn in gridPanel.
This custom form field will render multiple field in data model using the provided template just like TemplateColumn.
Since i only want to display data using this custom form field in the form panel so i try to extend the display field, but it only accept 1 data field in the model.
How could I make the custom form field accept value from 2 or more data field in model.
Thanks in advance.
you can bind to several fields and also included text
bind: {
value: "{rec.field1} - static text -> {rec.field2}"
}
feel free to add a fiddle to show what you want to do if this is not correct.
I want to create a dynamic forms in React.
The form should be fully dynamic means say if my API returns the JSON object having different labels for form fields and their types like text, textarea or a dropdown.
So whatever type of form API returns that form field should be displayed in a form.
I am unable to implement it in reactjs.
Any leads would be greatly appreciated.
I'm trying to create a template which renders a form and then cache that form as template so that I can use it in displaying form with user inputs while in edit.
So far I tried merging both the data (form configuration data+ form input given by user) and render the form. But this won't allow me to cache the form as template and need additional work to retrieve the user input while saving.
Thanks.
I was reading this link about creating a custom post type in Wordpress. In the example, the field value box is text and the user can enter anything inside. I was wondering if it's possible to turn that field value box to a dropdown one, which values are loaded from the database. So for example, under 'Date', there is a dropdown box next to it with dates loaded from the database. Anyone know if it's possible? Thanks!