ionic 4 create dynamic Multi step Form from Json - ionic4

have to create multi step signup form from api response( JSON )
form can contain upto 3 pages and should support text field, select box and checkbox group.
The form should support the following validations.
a. Required
b. Regex(Input should match the regex configured in json.)
c. min and max value(text field only)
Each page should have a front and back button at the bottom and final page should contain submit page.
When the next button is clicked, all the fields in the page should be validated. If there are any errors, they should be highlighted.
If not, user should be taken to the next page. When submit is clicked, the value of all the form fields should be collected as a key value pair and sent to the service for processing.

Related

Choose one result in Splunk table Query

I would like to add radio button / any way to select - one of the results of my below REST query search,
QUERY : |rest /services/data/ui/views | table id label updated "eai:userName" "eai:data" "eai:appName"
Dashboard showing the results
This Query search is saved as a dashboard (auto-refresh) and I have added few text boxes (User Name, Commit Branch, User Token) as show in the attached image. These text boxes will be manually filled by user.
Use Case: I need to choose any one row via radio button (or any other technical way) and then click on the SUBMIT button to send the selected row data and text box (manually entered by user) data to my custom python script.
What is the way to achieve this use case in Splunk, Any help on this is appreciated.
If you want to pass results of a Dashboard elsewhere, you need to use a drilldown
See the Dashboard XML reference for more
Splunk will only send to a URL, however - so if you want it to go to a "custom python script", it will need to be accessible via URL
What does your "custom python script" do?

dojo form submit on change of value

I have a dojo table container embedded within dojo form. I'm able to validate all dijits like textbox, combobox etc and submit the form. But what I need is, submit the form only when a value is changed i.e. if a textbox value is changed, submit the form else don't.
Add a hidden text input field which is empty while loading page. Then After you make a change in your text field check the content in the hidden text field and your respective text field if they are same then don't submit the form.
Dojo input fields maintain the original value in the private attribute of '_resetValue'. Before submitting the form, you can check whether _resetValue is different from .get('value') and submit the data..
If all the attributes are under the Table container, you can fetch the children of the table containers and verify using array.every() function..
var unmodified = array.every(container.getChildren(), function(widget){
return widget._resetValue == widget.get('value');
});

Asp net mvc 4 Kendo dropdownlist

I have a kendo drop down list it binds on page load.
I have a filter section and I filter one drop down list and I click the submit button and its submitting the page.
When I am clicking the submit button I validates the drop down list whether the user selects the valid input or user types invalid data.
When I clicking the submit button, I save the valid data in hidden field and assigns the value to model property.
After submits the page the selected value(before submits) is selected in dropdownlist.
If now I submit the page once again the drop down list selected index comes as -1.
How to validate this drop down list in the above scenario?
You need to set it's value from model when rendering the page again.
You can easily set by following way using jquery:
$(document).ready(function(){
var dropdownlist = $("#movies").data("kendoDropDownList")
dropdownlist.value($("#value").val());
});

Smartforms: form has wrong page format

SAP 730 Final Release Build 1429747 Patch Level 5
I am modifying a purchase order form; the form has a First and Next page; I added a Secondary window named 'Buyer' to both pages; before I add any elements, when I print preview the form I get the error
Form BUYER has wrong page format.
Message no. SSFCOMPOSER026
The Page Format in Form Attributes is LETTER; there is no different page format for this window.
I've read that this can be the result of some text areas containing too much text, however this window has no elements (yet).
Anyone run in to this issue before? Many thanks. I can post more info if needed.
Form TXT_CONTACT has wrong page format.
Message no. SSFCOMPOSER026
Diagnosis
Form TXT_CONTACT has a different page format than the forms output previously but has been added to the same spool request.
System Response
Form TXT_CONTACT ist not processed.
Procedure
While forms are formatted (FM SSFCOMP_OPEN to FM SSFCOMP_CLOSE), the page format must not be changed. All forms within one spool request must have the same page format.
The first page format used, in this case paper format , is applicable to all subsequent forms.

How to generate adidional fields inside Yii form

I have:
Table "user"
id, username, password
Table "freedate"
id, user_id, start_date, end_date
Each user can have 1 or more (unlimited) number of "freedate" entries.
Now i have form with 2 text fields (username and password), and 2 date pickers (one for start date and another one for end date).
How can i enable user to inserd aditional datepicker pairs so they can enter as much of "freedate" entires as they need to?
I was wondering about insertind aditional button inside form, that would somehow create aditional fields when pressed, but u have no idea how to do it.
I don't need working example (even tho one would help ofc). What i need i suggestion from your own expirience if you had similar problem.
You can use javascript as noted above. Though that can get tricky to get the new fields associated with the datepicker.
You can also submit after each pair is entered. On returning back to form after save insert a new set of start/end date fields to the end of the form. This way they always have a freedate pair they can enter. (a bit slower overall)
You need javascript to generate these fields on the fly. Or a fixed amount of extra fields could be hidden and shown one by one using javascript as the user clicks the button. You would need to keep track of the number of fields being shown in a javascript var.
You need to write custom javascript in order to do that. It isn't hard, you would need to do something along these lines:
You need to create a button and, when that button gets clicked (onClick event or jquery click() function) you can add the html for your field (<input type=.... /> and so on to your form) and remember to use the correct name for these fields so that they get sent correctly when the user submits the form.