Select receiver of form based on hidden value - forms

I use Typo3 10LTS with the default form extension. I want to select the receiver of the form based on a value in a hidden field.
But of course the hidden field doesn't contain the real email address but only a key value.
Thanks,
Stephan

Seems to be possible via dynamically set finisher values based on formValues conditions

Related

How can you perform form validation at form level (not at field level)?

I know you can use a FormTextField to validate user input at the field level, but say you have First Name and Last Name as fields, and you would like to make sure that at least one of them is filled in.
How can you achieve that ?
Thanks.
I'll share what I did in this scenario. I use TextEditingController for these two fields. And after Form is validated I also check these two fields from controllers and if it matches to the condition then I submit values.If it does not, I show an alert dialog.

SugarCRM related Field

I have sugarCRM 6.5.20 OnDemand. I am in the Studio. I have a 1:1 relationship from Leads to Leads. I am trying to get the Primary Email address of the related Lead and display it in a calculated field.
It seems like the calculated field formula should look like:
related($emails,"email1")
When I do that I get the following error:
Invalid formula: related: Unknown Field : email1
The dropdown list doesn't list the email at all. How can I get the email? All of my web searches have proven ineffective.
Update:
I am willing to make the calculated field be the primary email address of the current lead. To do that I found 2 variables named $email_addresses and $email_addresses_primary and $emails. There is also a function called valueAt.
I tried to use valueAt(1,$emails) and valueAt(1,$email_addresses)
The validator accepted the syntax but the value was always empty.
Can I make a calculated field off of the leads primary email?
You won't get the Email field for the Studio's formula calculation. Email field is stored in a separate table and not in the module's table. It is just put in the Layout along with the other fields of the module, but it is not the same as other fields. All the Email Addresses irrespective of the modules are stored together in the email_addresses table and are related to respective module records in the email_addr_bean_rel.

Grails data binding hidden form fields

On my update action i'm submitting a form with hidden fields.
I want to avoid the automatic data binding on the hidden fields (delete the values from the domain object). How can i achieve this in grails?
Thanks
You need to use exclude as describes in documentation. Thanks Aram Arabyan.
bindData(target, params, [exclude: ['firstName', 'lastName']], "author")

rails 3.2 check if hidden field has value while sending form

I have inside of a form one hidden field, which must be empty when the form is submitted.
Is any value in it, i want to set a flag in the database column.
How can i realize the check if the value of this hidden field is not filled?
Is it an issue for controllers or for models?
It is an issue for the controller. You want to check the value of that field in the create and update actions and store what ever you want to store there.

Multiple values for one field

In GXT I want to create a form where a single field can have multiple values. so once one value is provided user should have option enter another value for the same field, similar to how we attach files in an e-mail.. what is the best way to do this?
One way to provide a button with plus symbol in the form. Clicking that button should add a field to the form dynamically. User can use that field to provide another value.
If you are talking about a single control, which can capture multiple values, can you try Multi-Select field like the one explained in this thread?