using GFAPI::submit_form to submit a checkbox with multiple options - gravity-forms-plugin

I'm trying to use the Gravity Forms API to submit a set of checkboxes programmatically, the values of the checkboxes on the form that is being submitted are "By Email", "By Post" and "By SMS" and the ID of the checkbox field is 40.
Along with the other fields (these all submit properly) i'm passing the following set of data to GFAPI::submit_form , no validation errors occur on running this code, however the values are not shown in the entries area of gravity forms, does anybody know if this is the correct syntax for a set of checkboxes to submit?
$input_values[input_40_1] => By Email
$input_values[input_40_2] => By Post
$input_values[input_40_3] => By SMS
$result = GFAPI::submit_form(54, $input_values);

Turned out this was an issue with a mismatch in the database schema for the two fields, the data inside of them was the same but saved in a different format (the likely explanation for this was the forms being created in differing versions of Gravity forms)
To fix we copied the field_meta from the field in the new form, changed the IDs to match the one in the old form and inserted it over the field in the old form

Related

Cannot update textbox on Access form

I have a form frm_Manage_Demand with two subforms: frm_Manage_Demand_Sub and frm_Manage_Demand_Bottom_Sub. I use the subforms to display the data from tbl_Manage_Demand. The reason I use two subforms is because there are two many fields to display on the screen in one form.
The need to allow the user to update the last two fields on the form plus an unbound textbox that is populated when the form is loaded.
I am unable to get the form to allow a user to enter data in the two fields plus the unbound textbox. All fields are set to Enabled = Yes and Locked = No. The main form has no record source. It attributes for Allow Edit, Allow Additions, Allow Deletions are all set to Yes.
The record source for the two subforms is tbl_Manage_Demand.
I created a new test form based on the tbl_Manage_Demand and I can update all fields just fine.
Any hints to solve my problem is sincerely appreciated.
I found that an unknown section of the code turned the control AllowEdits to No. So after the frm_Manage_Bottom_Sub form loaded I changed the control using Forms![frm_Manage_Demand]![frm_Manage_Demand_Bottom_Sub].Form.AllowEdits = True

Repeatable Form elements

I need to allow the users repeat some of the form fields(or form groups) in the survey forms. There should be a + or - button next to the field that if the user clicks on +, then a new field is created.
Example: https://www.rhyzz.com/repeatable-fields.html
I would be surprised to know if Qualtrics doesn't have this feature.
I google for this but no success.
You can't create new fields (choices, answers, variables, etc.) on the fly in Qualtrics. A field has to be defined in the survey for it be be saved in the response data.
You could write a JavaScript to show and hide fields to give the appearance of adding and removing fields, but you would have to define the maximum number of fields in the survey beforehand.

how to validate one specific form's fields among different forms under a Parent form

If you see on the attachment, I have 3 different forms under a single form with same submit. The top two form's fields already validate but now I would like to validate the fields of the Rechnung form so that at least it should not have empty fields. I tried with HTML5 'required' and some other js/jquery but all are affecting the other two forms too.
How can I only check on fly the fields with Rechnung form?
try:
validates_association :rechnungs

Adobe Acrobat form fields are all auto completing

In Acrobat preference I have auto complete turned off.
When I fill in one form field, all of the other form fields are filled in too with the same word?
So if I enter 'hello' into one field all the other form fields on the questionnaire get the value 'hello'.
I copied and pasted the form fields for each question to save time, surely that doesn't mean each form field in the questionnaire is just one form field, or does it?
How can I separate each form field so it can hold its own answer?
I found an answer to my question.
Fields with the same name will automatically get the same value, so each form field needs a different name.
If you create one form field, then right click on the form field in the menu on the right and choose 'place multiple fields', you can then input how many fields you want for the form along with other options. Acrobat then names each form field separately for you.

GWT + Editor: Avoid removing violation messages and wrong input

We implement in our GWT/GXT project displays that contain in most cases a filter form and a grid to show the filtered data. Displays are implemented with UiBinder and the "Gwt Editor Framework".
The user wants to have validations on the filter form. To do the validation we use JSR303 bean validation. The validation must apply on each change of a field in a filter form. The user wants also to have a kind of automatic fill a field based on the input in a second field (lets say a number range from and to). That works all perfect - but...
We struggle in a particular situation:
The user starts to type in some data in the filter form.
He puts a wrong value in a field that has to be parsed into a date (for example).
He continues typing into following fields which then cause an automatic prefill of a second field.
The result is currently, that the wrong value he typed into the date field is removed and the violation message as well.
Our current implementation will do a flush() to get the values the user typed in already. After that we fill a attribute in the model (based on the input) and do an edit(model). If there are some violation messages because of a wrong input in a different field in that filter form, the value is removed. That happens on field that need a parse (date, time, number).
The question is now:
Is there a way to keep the wrong value and the violation message as well?
Thank you for any replay!