Questions tagged [forms]

46134 questions
-3

votes
0

answer
15

Views

How can I extract all the results which a form gives on a web page? (In this case I know that there are a total of 60 results)

http://www.shikharclasses.in/ This is the website I wanted to do this from. There is a form on the right hand side of the web page. Titled-(Shikhar Entrance Exam - April 2019 Result). If you put the roll no as '1532' and the name as 'Shreshth Goyal' and the mobile no as '(any 10 digit no)' It will g...
Shreshth Goyal
1

votes
1

answer
7

Views

Crispy_forms_tags not fill form with instance in my update view

My problem about Update View On my UpdateView when I use {{form.as_p}} , Its work. But when I use {% load crispy_forms_tags %} Form not fill with instance. My View.py; def ayarlar (request): userinstance=get_object_or_404(kullaniciBilgileri,id=1) form = KullaniciForm(request.POST or None, instance...
Dany
1

votes
4

answer
1.1k

Views

Save string locally on device in Xamarin Forms

I want to save a small piece of data from a Xamarin Forms app locally on a device where it can be retrieved later. I don't want to use SQL Lite, App.Config or save it as a file, it's basically just a string. Is this possible, and if so does anyone have an example?
DarkW1nter
1

votes
2

answer
43

Views

Tiny space only on mobile versus desktop (stacking divs with pos absolute / css)

My goal was to stack two forms over each other so the outside borders aligned perfectly. I got it to work and look exactly how I want it to on the desktop site but viewing it on my mobile phone I noticed the 'red box' isn't exactly on top of the other one and is slightly higher. (Like no more than 1...
SCodeSK71
1

votes
2

answer
1.6k

Views

There is no FormControl instance attached to form control element with name

I have created a form in Angular 2 with which users can edit a SearchProfile which they can select from a list. Initially everything works fine but when i select a different item from the list of SearchProfiles I receive the following exception: There is no FormControl instance attached to form cont...
Bunnynut
1

votes
2

answer
5.2k

Views

The name “AppClass” does not exist in the namespace “…” when inheriting UWP Application class from another Application-based class

What I want to achieve is just to inherit UWP App class not from Windows.UI.Xaml.Application class, but from some base class, inherited from the 'standard' one. However, when I do it: namespace MyNamespace { sealed partial class App : MyUwpBaseApplication { public App() { this.InitializeComponent();...
Agat
0

votes
0

answer
2

Views

How to upload images from ObservableCollection to WebService?

I'm developing and app with Xamarin.Forms and, one of the requirements of the app is upload images to a WebService. So, I use a ObservableCollection to store/manage the images that user picks, and the problem is that I don't know how can I take all the images to send; If I have to convert to Base64,...
Ferran Muñoz
1

votes
0

answer
9

Views

Xamarin.Forms ScrollView adds extra space

My ScrollView adds extra spaces above the first child and under the last on my iPhone X. There is no padding or margin. I gave the ScrollView a blue background to see it's dimensions better. If I remove the ScrollView, the spacing also is gone. Here`s the code I am using .... Is this maybe a bug or...
2

votes
0

answer
7

Views

I cannot set multiple relatives in xamarin

I need to set of my images top off one and another in order to do this I used relative layout what I need is like this menu bar to create in xamarin forms so I used code like this in another page and I include it to where ever I want But it only shows to of them one is Menu setting and all other ar...
ish1104
1

votes
2

answer
441

Views

How To Edit ManyToManyField In Django Admin list Display Page?

I want to add Many2Many fields editable in Django admin list_display page. The model structure as below, class Genre(models.Model): name = models.CharField(max_length=250, unique=True) class Movie(models.Model): name = models.CharField(max_length=250) genre = models.ManyToManyField(Genre) And I tri...
1

votes
2

answer
9.5k

Views

How to set value to Form in Angular 6 using FormControl

Group Select {{group.name}} How can I set the value of the field to Select dynamically in the Component? I looked at the docs, https://angular.io/api/forms/FormControlName#use-with-ngmodel but still no example that can help me. Attempt: this.gGroup.get('groupControl').setValue('Select');
chris
1

votes
1

answer
58

Views

How to fix blink issue Create Checkbox using image in Xamarin Forms?

This is the CheckBox.xaml This is CheckBox.Xaml.cs . using System; using System.Collections.Generic; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace CheckBoxSample.Controls { /// /// Custom checkbox control /// [XamlCompilation(XamlCompilationOptions.Compile)] public pa...
Akash Limbani
1

votes
2

answer
479

Views

Xamarin Forms content page make background color transparent

I have a requirement where in I need to display a list in a modal popup page.I am able to display a list but I cant make the background color transparent or semi transparent so that the page under it is partially visible. I am pushing the page from my View Model using the folowing: NavigationParamet...
Debasish
1

votes
4

answer
2.3k

Views

password and confirmpassword validation in angular using reactive forms

i have attached my code below .im facing problem in adding password mismatch validation.im not getting validation error if i type mismatching password register.component.html UserName:* UserName is required Password:* password is required minimum of 6 characters required ConfirmPassword: * confirm...
swagath
0

votes
1

answer
4

Views

How to check Internet Connectivity in xamarin forms shared project

How can I check if Internet is available in Xamarin forms shared project. We can use Cross connectivity plugin in PCL project, can we use the same plugin in shared project as well?
Mars
1

votes
2

answer
24

Views

Laravel: Use same column as option name and its value in select box/drop-down?

I'm trying to create a form with a select box in Laravel. View {{ Form::select('cmp_type', $cmp_types, null, $attributes = ['class' => 'form-control']) }} Controller public function showAddCompany() { $cmp_types = cmpTypes::where('status', true)->pluck('type'); return view('addCompany', compact('cmp...
siri
1

votes
3

answer
187

Views

VS2019 + Xamarin.Forms = UWP/EXE dropped?

How do I get the UWP back into Xamarin.Forms Cross-Platform creation to have the templates ready to roll? After picking through the release notes, playing with VS2019's UI and a few hours of web searching, I have only found others posting about the problem in the preview versions. Some say UWP is go...
Juggern Ott
1

votes
5

answer
137

Views

How to put label and radio circle in same line

I want to make it look like it looks at the picture. I can't put label and radio 'circle' in same line. I was trying to add input class and set float: left but it makes a big space between those two. Choose car rental mini economy compact SUV VAN Choose optional equupment child seat GPS DV...
Ribote
1

votes
1

answer
32

Views

Aysnc validator angular 6

I am tryin to check username availablity on typing username using a rest api. I am using angular forms for validators. From backend I get true is username exists and false if not. I am using below code : this.registerForm = this.formBuilder.group({ userName: ['', [Validators.required, this.userNameV...
user9040429
1

votes
2

answer
69

Views

How to set dynamic value to formControl in angular 7

I have drag and drop formBuilder we can able to create form using drag and drop so now i am facing problem i have hidden field in html which is TempleteJson. Here is html code Form Name: CreatedOn: Submit Here is component.ts file formBuilder: any; formData: any; data: any; ngOnInit() { var id = thi...
Ronak Dumaniya
1

votes
3

answer
38

Views

How to change the placeholder text if user selects an options

I currently have 2 option value in my asp form group where one represents country and the other is for the state/province. Is there any way to interchange the text? For example when user selects canada the placeholder text will be province where when U.S is selected the placeholder will be State. Ca...
Josh
1

votes
1

answer
37

Views

how to reduce the code duplication in my navigation menu

I use a floating navigation menu for my project so I need it in every single page this is my code
ish1104
1

votes
2

answer
22

Views

Google Maps not showing on phone

My Manifest Map showing on emulator in Debug But not showing on phone in Release What could be the reason?
1

votes
2

answer
62

Views

Element not expanding in Xamarin.Forms

Using StartAndExpand or EndAndExpand does not seem to actually expand the elements inside StackLayout. Even though there is more space available as seen in the blue area. Only FillAndExpand works. Here is the code: And here is what I get: Top result is when using FillAndExpand for the child StackLay...
Ghasan
1

votes
3

answer
34

Views

Reduce values from dynamic HTML fields array to the most compact form

I have an HTML form with dynamic recipients field array, where each array item has name and email fields . Field names are uniquely generated using [array_name].[item_index].[field_name] pattern. When I submit form it produces the following JSON: [{ name: 'recipients.0.name', value: 'John' }, { name...
s.ermakovich
1

votes
3

answer
4.4k

Views

Set attribute of a model to a certain value before saving

I have this: class OrderForm(ModelForm): class Meta: model = Order exclude = ('number',) def __init__(self, *args, **kwargs): super(OrderForm, self).__init__(*args, **kwargs) if self.initial.get('account', None): self.fields['customer'].queryset = Customer.objects.filter(account=self.initial.get('ac...
orokusaki
0

votes
1

answer
6

Views

Xamarin.Form control to canage Calendar with events?

I was looking for Calendar control can manage Activities(Appointments, PhoneCalls, Tasks) same like FullCalendar. First priority is to use default control is Xamarin provides. If it doesn't consider event management, I can go with third party controls. Note: I am using .NetStandard. So, control must...
Nanji Mange
1

votes
2

answer
3k

Views

javascript replace text in all form fields on submit

I've done some Googling but haven't been able to get this working. What I need to do is look through all of the TEXT fields in my form and replace all instances of ',' (comma) with ' & # 4 4 ;' (escaped comma) on submit. Here is the form tag: And here is my javascript function: function validateFor...
user1316401
0

votes
0

answer
11

Views

How to submit a form or create a php mysql CRUD with upload image

I already have a working form that is being saved/update/delete from and to the database. My only problem is the tutorial I found for the upload image doesn't suit the way how my form works. Can somebody please help me? I already tried an onclick for my form without the upload image, and also I trie...
Arbie Tecson
1

votes
1

answer
1.3k

Views

Whats the most efficient way to update a partial after an AJAX form submit in Rails 3

I have a page with code as follows: where form is a form for '@item' and 'render @item' renders a partial that represents '@item'. The form uses remote: :true and submits using AJAX. Whats the simplest and most efficient way in rails 3 to update the entire @item partial when the form is submitted.
Ryan Perera
0

votes
0

answer
4

Views

request.form.getlist() not working with data from AJAX request

I'm having issues with checkboxes sharing the same name in Flask. Specifically, the form has a checkbox for each project, and I need to get a list of project ID's for each project that the user checked in the form. In the HTML, each project has a checkbox with name = 'project' and value = the proje...
Ethan Jensen
1

votes
2

answer
2.1k

Views

Changes in jQuery UI not reflected on Angular models

I have a form which is in a directive. It contains 2 select dropdowns (jQuery styled) and one jQuery UI slider, so it's all consistently themed. Dropdown 1 is populated at spawn, as simple as they come. Dropdown 2 gets populated when the value of Dropdown 1 changes. This happens because dropdown 1 h...
Swader
1

votes
3

answer
650

Views

Modifying items in a $_POST array

I'm using CodeIgniter to validate form data, and then posting it to a third party site using the php header() function with the $_POST key-value pairs as URL parameters. So for example: 'first_name' => 'chris' 'area_code' => '555' 'phone_number => '555-5555' ... would become 'http://thirdpartysite.c...
Chris
2

votes
0

answer
221

Views

Angular ControlGroup Validate not resetting values

I am not able to reset my validation once the user enters a value into the UI. In the debugger I can see the value is getting passed into the onModelChange it will never reset. I would like the validation to know there is a value in the control and not block it and set the value to IsInvalid to fa...
Jefferson
0

votes
0

answer
7

Views

How to insert data to form text inputs with a content script when javascript validation is preventing it

I have a Firefox add-on which fetches personal data from a server, sends it to a content script in an active tab which then tries to match the data to any form input fields it finds. I am looping over a NodeList using const inputs = document.getElementsByTagName('input'); then using .match() meth...
russell newton
1

votes
1

answer
6.2k

Views

How to retain the form values after refresh in jsp?

I have read many topics regarding this issue but almost all of them aims at how to retain the values of the form once the form is submitted. But in my case I don't want to submit the form.I'm having 3 checkboxes and based on the selection of the checkbox by the user some values are displayed dynamic...
Saumil
1

votes
3

answer
14.6k

Views

How to avoid page reload in php form submission

I am currently using php in my html page and there is an action in the same page which gets executed upon form submission. Currently whole form gets reloaded while I want the php action to be run in the background with out reloading. How do I do it. I would also want to clear the text box after subm...
raju
1

votes
2

answer
2.6k

Views

Not getting file type and tmp_name while uploading

I want to upload image and pdf same time but it is giving error. I don't know what I have missed, image is uploading properly but there is problem while uploading a pdf. Here is the piece of code. NAME : PDF : IMAGE : I am getting output as : Array ( [brwAddNewsPdf] => Array ( [name] => Newsletter...
Dinesh Patil
0

votes
0

answer
2

Views

how to override default Django form validation error

I try this but it doesn't work. default error message is shown only.please help from django import forms from SharedApps_Application.models import certificateDb from django.contrib.admin.widgets import AdminDateWidget from django.forms.fields import DateField my_default_errors = { 'required': 'Appl...
A500010
0

votes
0

answer
3

Views

How can I receive audio and video call by using VidyoConnector (Vidyo.io)?

After generating token, I want to place audio and video call. I start but not receive by other device. I have run app on both android devices. What userId I have to set to receive call . I am using these codes https://github.com/Vidyo/VidyoConnector-xamarin https://github.com/Vidyo/simple-connector-...
Harinder Kaur

View additional questions