how to show pop up on empty field in form applet in siebel - siebel

I am trying to show a pop up that if a field in form applet, lets suppose "Firstname" field is empty, soon the applet will load and find if firstname field is empty , it will show an alert message that please update the firstname and when I click on that alert message , a pop up screen will appear which will let user manually enter the first name and that record will store in the database. And when next time user will logon the field will show the firstname. please provide your valuable suggestions.

Why you are complicating things around? You can display the error message by placing script in WebApplet_Load Event to check if the field is null or not and no need to display another popup applet. User can enter First Name in the form applet you already displaying.

Related

How to fill a update form with values using :APP_USER id in Oracle Apex?

I have a classic report which shows profile details of a user. There is "Update Profile" button on the top of the report which when clicked redirects a user to a form from which the user can update information. I want to populate the fields in the form with the present data of the user
If I had used interactive report than I could have passed the "student_id" to the target form page. In classic report I cannot do so. I tried passing the :APP_USER instead of "student_id" but that didn't work. How can I solve this issue.
It would be better if the form can fill itself with the :APP_USER id without passing the id from the report
How can I do so?
I tried doing it by passing where clause in Source section as show in the bellow pic:
It didn't work. The form is still empty
In the form region attributes, under "Source", there is an attribute "Where Clause". You can use that to only retrieve the row for the currently logged on user.
Example:
username = :APP_USER
Replace "username" with the column name in your table

validation on button without refresh page on APEX5 5.0

Need your suggestions on handling the validation without submitting page in APEX 5.0. I have following items on my apex report page.
"Select list" item which contains some static values
date pickers ( start date and end date)
Submit button ( Once submit is clicked the report date is displayed )
Here I need to add a dynamic action or validation to the submit button so that if user clicks the submit button without selecting a value from the "Select List", an error message should be displayed to the user that he needs to select the item first from the "Select list" page item. With out any selection from the list , the processing should stop and a warning message should be displayed ( either it could be popup message or message can be marked on the select list page item ) .Point to be noted here that during the submit I do not want to refresh the page, just would like a quick error message to display.
Appreciate your help.
in a similar case i used dynamic actions
dynamic actions works on client side
in my case i am not enabling submit button until user changes the select list value
in my dynamic action my config is as below
Event=change
selection=items
item=selectlistID
and true action is
action=disable
button=submitbuttonname
in your case you can choose javascript as action and add your javascript code

Sitecore WebForms for Marketers : send email to users

I am using Send Email Message action. I have added one action for send email to admin and another thank you mail to user who filled the form so my question is how I can add user email in Send Email Editor. I tried to add email Insert Field but it is not working.
EDIT:
By Default, the TO Dropdown only allows content from the Email Field Type. To allow other field types, please go to to the Send Email Message action found here by default: /sitecore/system/Modules/Web Forms for Marketers/Settings/Actions/Save Actions/Send Email Message
go to the Editor section, and enter the following into the QueryString field:
AllowedToTypes={84ABDA34-F9B1-4D3A-A69B-E28F39697069}|{YOUR CUSTOM FIELD TYPE GUID}
The first guid is for the standard Email Field type, and the second one will be your custom field. This should allow you to choose from those fields in the TO field.
For best practices, you should duplicate the Send Email Message action, and apply the changes there to prevent issues with future upgrades.
To allow your custom fields to be selectable for the CC and From fields as well, your query string would look like this:
AllowedToTypes={84ABDA34-F9B1-4D3A-A69B-E28F39697069}|{YOUR CUSTOM FIELD TYPE GUID}&AllowedCCTypes={84ABDA34-F9B1-4D3A-A69B-E28F39697069}|{YOUR CUSTOM FIELD TYPE GUID}&AllowedFromTypes={84ABDA34-F9B1-4D3A-A69B-E28F39697069}|{YOUR CUSTOM FIELD TYPE GUID}
From there, to send an email to one of the fields on the form, simply choose the field by clicking the little arrow next to the 'To' field
I have noticed a bug in previous version of wffm where it places double brackets around the field name, for example: [[email address]]. If you notice the double brackets [[..]], then erase the entire field and select it again as shown above.
I found there is an issue a with the To: field in certain browsers - not sure if this is related to Bug 402562.
In Chrome I get js error messages but in Firefox I can insert the email field with no issues.
As stated my #amir818, you need to add the field name with brackets in the To field. If you are using Chrome then the arrow may not work due to a javascript error, it works in IE though.
Alternate way to add the field into the message body from the Insert Field droplist and then copy+paste into the TO field. Looking at your field names it should be [Emailaddress].
The double brackets that amir mentioned is a bug, you can get a fix from Sitecore and quote ticket number 402562. When you edit the form again, the field has 2 sets of brackets added which then breaks the send action, e.g. it would end up as [[Emailaddress]] which is incorrect and therefore fails

Sitecore Webform for Marketer Save to Database FormID

I have a form created in sitecore WFFM and exported into ascx control.
My form has 2 save actions:
Save to Database and
Send Mail Message
In Save to Database action, a new row is inserted into WFFM tables.
I want to get the submitted form id (which is the id from form table) and insert into the send mail message as part of the message. Is there a WFFm function that I can call to get the id? I am not talking about this.FormID which is the main form id, but the id of just submitted form instance.
The simple answer to that question is, out of the box, no. The only out of the box values you can use on the send email are the values in the form itself. You can easily do it with a custom data call, but out of the box, no.

How do I change the template of the Mailchimp Wordpress widget?

I want to change how the form looks like and the labels on the fields of the form.
Login in as Admin and then, under the Plugins area in the sidebar, click Editor. There's a dropdown menu labeled "Select plugin to edit". Click that and select "MailChimp" and then click the "Select" button. The sidebar widget form is called mailchimp/mailchimp_widget.php
The form's code begins right after the first PHP block.
You can also edit the code directly by looking in the wordpress/wp-content/plugins/mailchimp/ directory. The translations are in the po sub-directory.
The trick with this template is that the fields are loaded from elsewhere. In order to change the label, you have to set the option of the fields in the PHP code. Each field is looped through and printed out automatically.
For example to change the "Email Address" label to read "Email" add the following code at the end of the first PHP block:
$mv[0]['name'] = 'Email';
This assumes that the first field that will be printed out is the Email Address field. You can do a var_dump to see what other options are available.
If you want to make more drastic changes to the form, remember that when the widget is updated, you'll have to make the changes again and merge them with the updated version.