Questions tagged [forms]

30778 questions
1

votes
7

answer
947

Views

Detect specific field id on form change with jQuery

I have a simple form which currently uses jQuery to do some dynamic calculations based on user form input. Most form fields are disabled and their value is calculated using the values of the non-disabled fields. Part of the calculation involves an AJAX call to save the field value to a database. I c...
Roy
0

votes
0

answer
4

Views

How to integrate Google Tag Manager to Xamarin.Ios?

I'm working on a xamarin.forms project and I want to send the firebase events to google analytics through GTM. I have integrated firebase and also crrated the google tag container in firebase sdk. Also, added container json file to my containerfolder. But when I added xamarin.google.ios.tagmanager a...
Mayank Shrivastava
1

votes
4

answer
2.3k

Views

Can I prevent spam bots from submitting a form if its hidden?

If I display:none over a form wrapper on my website contact page will a spam bot still be able to submit it? If no, then would a possible solution be to just place a link saying - send us an email - and when clicked it display:show the wrapper with the form thus this preventing spam? Thanks, -O
MuhuPower
1

votes
1

answer
618

Views

If/else if statements not work with PHP form filter

I am trying to figure out why when I submit this form filter, my if/else if statements don't work. print_r($post); returns the correct filter value, however $printmain only shows 'rehab' no matter what filter option is chosen - which is strange because the $post variable is obviously changing. So I...
Scott Floyd
1

votes
1

answer
394

Views

php to AJAX form submission

Newbie here in AJAX i got this code, Please help, my code keeps going to the sec_reg.php page even if the password is mismatch, or even when the form is valid, i want the user to stay on current page even if he submits a form. Here is my code Here is my form ADD ANOTHER ADMIN Email Password Confirm...
user3196424
1

votes
2

answer
990

Views

Dynamically add a placeholder to a form field

I have a Django form with a few typical fields: first_name = forms.CharField(label=_("First Name")) last_name = forms.CharField(label=_("Last Name")) phone = USPhoneNumberField(label=_("Phone Number")) email = forms.EmailField() password1 = forms.CharField(label=_("Password"), widget=forms.Password...
user1427661
0

votes
1

answer
16

Views

Critical dependency: the request of a dependency is an expression on jQuery Form Validator plugin

I have problem on loading security module from jQuery Form Validator plugin: $.validate({ modules : 'security' }); I'm using webpack and Laravel-mix for boundeling my files and I got this error: Critical dependency: the request of a dependency is an expression. Every thing is fine and even the...
1

votes
1

answer
456

Views

How to pass entity atribute value to form Symfony2?

I have a form type: $builder->add('paises', 'collection', array( 'options' => array('data_class' =>'Acc\ApssBundle\Entity\Pais'), 'prototype' => true, 'type' => new PaisType(), )) ; How to add attribute "name" to the class Pais to the label form ?? In twig I have: {% for pais in form.paises %} {{...
Alex
1

votes
1

answer
30.8k

Views

Clear form fields after a successful submit

well im working on a small html form. Name :
user3756377
0

votes
0

answer
5

Views

Xamarin.Forms: add labels inside ListView?

I'm still learning, so please bear with me. I'm trying to display a ListView in my Xamarin.Form. So far, this is what I have, and it works pretty well: This is the codebehind: var obj = JsonConvert.DeserializeObject(coord); List storeList = new List(); string store = string.Empty; foreach (var item...
1

votes
2

answer
786

Views

HTML form submit button is not vertically centered

This is my first time posting, so I hope I'm doing this right. I want to style a search bar like this one The problem is, the submit button is always a little off vertically in comparison to the text-input. No matter what I do, there is always at least 1px offset. Help is MUCH appreciated! I have th...
Dee Ell
1

votes
1

answer
579

Views

How can create a model form in django with a one-to-one relation with another model

I want to create a model form with a one-to-one relation with another model. i.e Model1 has a one-to-one relation with Model2. I want my form to show all the fields from Model1 as well as Model2. Also what is the best way to show this in a view.
acquayefrank
1

votes
1

answer
1.5k

Views

Send listboxfor to controller

I have a form in my view that contains a listbox. The user adds values to the listbox. When the user pushes the 'submit' button I want all the values in the listbox to be placed in my models property that is a List. Here is the Listbox in my view: @Html.ListBoxFor(m => m.Ingredients, new List(), new...
1

votes
1

answer
2.1k

Views

Form file accept type in ReactJS

I have a simple form: Name Description Patch File I want to be able to only accept tar.gz file uploads. The only "type" I've been able to get was image/*. Where can I get a list of types?
Kousha
0

votes
0

answer
4

Views

ControlTemplate overrides controls added programmatically

I Am trying to create a dummy app that has multiple "Branding Packages". I have read that using a control template is the easiest way to apply a global styling to the app. most controls in the app will be added dynamically via the code behind. However whenever I set the content view to use the cont...
Vox121
0

votes
0

answer
5

Views

Xamarin forms - How do I set font for toolbaritems

I have a toolbar in my mainpage and would like to set the font for each toolbaritem (so I can set custom fonts or normal fonts). So far I have been trying to get this done by implementing my own effect and this code works for labels but not for toolbaritems. Whenever I run this code the effects get...
j.Doe
1

votes
1

answer
500

Views

Associated models and a nested form with validation not working

Update2: I've cleaned up the code, which seems to have solved some of the problems. I've posted the new code as a new question here. Update: Organization and User have a 1:many relationship. My question concerns a joined signup form where both an organization and user are required. After maxcal's he...
Nick
1

votes
1

answer
3.3k

Views

How to add a dropdown <option> in a rails form?

I had created a scaffold- rails g scaffold shipment name:string description:text from:string to:string date:string pay:string I want the form:string to be a drop down (with Kolkata/Delhi/Mumbai as options) and not a text field. How can I do this? I had searched the web but everything was too upper l...
Ahmed Reza
1

votes
2

answer
791

Views

Show loading in browser while form submit

I am using AJAX to get some data and fill-up the form. Data is quite large so it takes some time to get from DB and fill up in fields, so while all doing this stuff i am showing loading icon. Now there is a submit button in a form, and we want - that form should not be submitted until that loading...
daniyalahmad
0

votes
0

answer
6

Views

How to make the absolute layout height dynamic in xamarin forms?

I have a view where the delete tab is not coming properly. My delete tab should have dynamic size it should fill the Tiles properly. For that height of the tab should be dynamic. But I don't know how to make the height of absolute layout dynamic. As you can see in image The delete tab is coming prop...
user3452
0

votes
0

answer
7

Views

Can I set customised title bar for a master detail Page

I want to have an -Image button -logo -text view How to set the title bar with these constarints?
Pinky
1

votes
1

answer
651

Views

FormsAuthentication redirecting to login page

I'm trying to implement Simple FormsAuthentication in an ASP.NET MVC5 application as: Controller public ViewResult login() { return View(); } [HttpPost] public ViewResult login(Login login) { if (ModelState.IsValid) { if (FormsAuthentication.Authenticate(login.username, login.password))...
Jogi
1

votes
1

answer
1.2k

Views

Count Checkboxes with Gravity Forms

I'm making a form that is for a summer camp registration form where users will be registering. By the end of the form there is an option of paying in full or making a $50 deposit for each camp selected. I'm using hidden products to handle the total amount per week and adding their value into the tot...
Renato Francia
1

votes
2

answer
1.6k

Views

How to detect hitting the bottom of a grid within a scrollview in Xamarin Forms

I am using Xamarin.Forms to display Items from a Websource in a Grid (within a ScrollView). When the user hits the bottom of the grid, i want to load more items and add them to the grid. I know that usually a ListView is preferred for displaying data in this fashion (and that ListView has an ItemAp...
StarterPack
0

votes
0

answer
12

Views

Xamarin.Forms Control Template Binding Not Working

I've specified a control template in my App.xaml: You can see I've got one of my controls databound: Text="{TemplateBinding BindingContext.HeadingText}" The control template works fine, I can add it to a page without any problems, except for the bound property doesn't display: Here is my page code:...
Matt G
0

votes
0

answer
4

Views

Django generic views form

I am working on an online leave system when staff can use the system to apply for leave and get their leave approved online. Once an applicant launch leaves, the leave are stored on the DB. where the authorizer can view the leaves on a table. To authorize a leave the authorizer click on a respectiv...
sum
1

votes
2

answer
78

Views

For a Xamarin Forms application how should I decide what goes in the App constructor or the OnStart()?

Here's the code that I have: public App() { InitializeComponent(); DB.CreateTables(); DB.GetSettings(); DB.PopulateTables(); SetResourceColors(); SetResourceDimensions(); MainPage = new MainPage(); activity = Helpers.Activity.Create(); VersionTracking.Track(); DeviceDisplay.MainDisplayInfoChanged +=...
Alan2
1

votes
1

answer
1.7k

Views

django: what does model and fields do in meta class?

Iam following the django tutorial series from trydjango: coding for enterpreneurs , and was confused with what does "model" and "field" do in django form. models.py from django.db import models # Create your models here. class SignUp(models.Model): email=models.EmailField() full_name=models.CharFiel...
satch_boogie
1

votes
1

answer
154

Views

Symfony forms, labels not to be translated

I have some labels in a form which don't need to be translated (for example, IBAN, PayPal Email, Skype...) Can i avoid translating them (it would increase the translation files size uselessly), without having the "Missing messages" error? I'm using a standard Doctrine Entity + FormType class + Twig...
the_nuts
0

votes
0

answer
4

Views

How to fill a DataGridView in Visual Studio 2017 automatically?

What I have: MS VS 2017 MySql server launched on local host Completely installed pack mysql-installer-community-8.0.15.0.msi What I need: To create a Windows Forms application using an element DataGridView, whith bound table columns. I suppose that this radio-button should be active to do it The pro...
Mike Biri
1

votes
1

answer
947

Views

Stretch WebView

I'm stuck on making a gif element which inherits from WebView. This "WebView" is representing the following html => String.Format(@"", value); where value is the URL to the GIF. However, when I declare it with a local gif, it does work, but the focus of the webview is at the top/left. I can also mov...
Emixam23
1

votes
2

answer
1.6k

Views

How to add button at the right corner of Expander - WPF DataGrid

I would like to know how to put button to the right part of my expander, here is picture of how does it look when my expander is collapsed (I need buttons no matter is it expanded or not). I need to get this, so when user click on button I must get ID of order and do some action! Here is my code: Th...
Roxy'Pro
1

votes
3

answer
1.7k

Views

Django: Get the form name or id from template

If you have multiple forms from django import forms class NameForm(forms.Form): your_name = forms.CharField(label='Your name', max_length=100) class SecondNameForm(forms.Form): your_name = forms.CharField(label='Your name', max_length=100) is there a way that, in your template, you can figure out i...
Algorithmatic
0

votes
0

answer
25

Views

Showing display values in form built with a loop

I have a simple model form for adding new objects. The template builds the form with a loop, i.e not every field is placed explicitely. The model has a few choice fields. Normally, if you want to see the the display value of the choice field you'd do something like {{ get_myfieldname_display }}. bu...
uwain12345
1

votes
2

answer
368

Views

How to use Custom Renderer in Xamarin Shared Project

I am using Shared Project for my cross platform mobile application and want to use Custom renderer in my app for native support. Is there any way i can use Custom renderer in my app.
sanjeev1988
1

votes
2

answer
248

Views

How can i detect the Forms Previewer mode?

Visual Studio 2017 introduces a new window to help with mobile development - The "Forms Previewer"-window. Has anyone found out how to detect this mode yet? I have some telemetry code, which throws exceptions because it is not initialized yet - hence the need to detect this "design" mode.
Dbl
1

votes
1

answer
5.1k

Views

How to position a button using X and Y coordinates in xamarin forms?

I want to position a button at place having certain pixels distance from left and top. I have the exact position in pixels of where to place the button. But, how can I do so?
BlackHat
0

votes
1

answer
13

Views

Rename Fields of Model in Serializer and Form - Django

I want to change field names. In my model field name start with prefix timesheet. And when i am using api i have to use that timesheet prefix. I want to remove that prefix instead keep jobs, clock_in_date, clock_out_date.... How can i rename field names so that when i am send data from api body shou...
Huzaif Sayyed
0

votes
0

answer
7

Views

HtmlConverter.ConvertToPdf i want to rotate mypage like PageSize.A4.Rotate()

Windows Forms C# - Nuget-Package: Install-Package itext7.pdfhtml -Version 2.1.1 I am using this package for my project. How can I rotate or set page size. I am not using Document doc. string RaporTemp = Dizinler.RaporTemp + "Temp_" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".html"; string Output...
Mehmet Erdoğdu
0

votes
0

answer
4

Views

Symfony4 - Validate fields based on values of other fields

I am building a very large form with multisteps and some conditional fields and cannot find a good solution for my problem. For example if field A is "Foo" then field B is shown via Javascript and must be validated via Symfony, otherwise the field must be empty. Is there a Way to do this? PS: Is ht...
André Rinas

View additional questions