fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
July 24, 2014, 03:58:27 PM

Login with username, password and session length
Search:     Advanced search
Welcome to the FileMaker Web Masters Exchange.  If you have any questions about how to use this forum, please watch the getting started movie at:
http://www.fmwebschool.com/movies/forum1/forum1.html
27779 Posts in 6146 Topics by 1525 Members
Latest Member: alkyred
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  Recent Posts
Pages: 1 [2] 3 4 ... 10

 11 
 on: June 11, 2014, 07:09:43 AM 
Started by crmon1 - Last post by crmon1
Hi There! This is the code that is generated using FMStudio Pro. You'll notice the code "text".
Code:
<?php fmsLiveInputField($reader,'users','pword',null,$newuser_row->getRecordId(),"text",$newuser_row->getFieldUnencoded('pword'),null,null,"passwordboxer","w"); ?>

This attribute is delivered to the include FMStudio_Tools.php file and then rendered as:
Code:
<input id="__FMS19" class="__FMS_LiveValueList passwordboxer" value="" name="pword" has_focus="false"></input>

FMStudio_Tools.php uses this function to switch the input type:
Code:
switch($type) {
case "static_text":
echo "<span id=\"{$field_id}\"";
if($cssClass !== null) {
echo " class=\"__FMS_LiveValueList __FMS_LiveValueList_StaticText {$cssClass}\"";
}else{
echo " class=\"__FMS_LiveValueList __FMS_LiveValueList_StaticText\"";
}
echo ">";
if($current_value !== null) echo htmlspecialchars($current_value);
echo "</span>";
break;
case "text":
echo "<input name=\"$field\" id=\"{$field_id}\"";
if($cssClass !== null) {
echo " class=\"__FMS_LiveValueList {$cssClass}\"";
}else{
echo " class=\"__FMS_LiveValueList\"";
}
if($current_value !== null) echo " value=\"".htmlspecialchars($current_value)."\"";
echo ">";
break;
case "textarea":
echo "<textarea name=\"$field\" id=\"{$field_id}\"";
if($cssClass !== null) {
echo " class=\"__FMS_LiveValueList {$cssClass}\"";
}else{
echo " class=\"__FMS_LiveValueList\"";
}
echo ">";
if($current_value !== null) echo htmlspecialchars($current_value);
echo "</textarea>";
break;
case "dropdown":
$items = fmsValueListItems2($conn,$layout,$list,$recid,$empty_label,$current_value);
echo "<select name=\"$field\" id=\"{$field_id}\"";
if($cssClass !== null) {
echo " class=\"__FMS_LiveValueList {$cssClass}\"";
}else{
echo " class=\"__FMS_LiveValueList\"";
}
echo ">";
foreach($items  as $list_item) {
if(html_entity_decode($list_item[0]) == $current_value) {
echo "<option value=\"{$list_item[0]}\" selected=\"selected\">{$list_item[1]}</option>";
} else {
echo "<option value=\"{$list_item[0]}\">{$list_item[1]}</option>";
}
}
if($other_label !== null) {
if(!count($items)) {
echo "<option value=\"\"></option>";
}
echo '<option value="__FMWS__CUSTOM__">'.htmlspecialchars($other_label).'</option>';
}
echo "</select>";
break;
case "checkbox":
$items = fmsValueListItems2($conn,$layout,$list,$recid,null,null);
$name = $field.'[]';
if($cssClass !== null) {
echo "<span id=\"{$field_id}\" class=\"__FMS_LiveValueList $cssClass\">";
}else{
echo "<span id=\"{$field_id}\" class=\"__FMS_LiveValueList\">";
}
foreach($items  as $index => $list_item) {
$id = $FMStudioV2->uniqueid();
echo "<input type=\"checkbox\" name=\"$name\" id=\"{$id}\"";
echo " value=\"{$list_item[0]}\"";

if(fmsCompareSet(html_entity_decode($list_item[0]),$current_value)) {
echo " checked=\"checked\"";
}
echo "> ";
echo "<label for=\"{$id}\">".$list_item[1]."</label>";
if($index+1 != count($items) && $separator !== null) {
echo $separator;
}
}
echo "</span>";
break;
case "radio":
$items = fmsValueListItems2($conn,$layout,$list,$recid,null,null);
$name = $field;
if($cssClass !== null) {
echo "<span id=\"{$field_id}\" class=\"__FMS_LiveValueList $cssClass\">";
}else{
echo "<span id=\"{$field_id}\" class=\"__FMS_LiveValueList\">";
}
foreach($items  as $index => $list_item) {
$id = $FMStudioV2->uniqueid();
echo "<input type=\"radio\" name=\"$name\" id=\"{$id}\"";
echo " value=\"{$list_item[0]}\"";

if(fmsCompareSet(html_entity_decode($list_item[0]),$current_value)) {
echo " checked=\"checked\"";
}
echo "> ";
echo "<label for=\"{$id}\">".$list_item[1]."</label>";
if($index+1 != count($items) && $separator !== null) {
echo $separator;
}
}
echo "</span>";
break;
}

}

I've tried adding to the this function, so it would recognize  "password", but there must be something else I am missing because it hasn't been working. This is what I tried adding to the function:
Code:
case "password":
echo "<input name=\"$field\" type=\"password\" id=\"{$field_id}\"";
if($cssClass !== null) {
echo " class=\"__FMS_LiveValueList {$cssClass}\"";
}else{
echo " class=\"__FMS_LiveValueList\"";
}
if($current_value !== null) echo " value=\"".htmlspecialchars($current_value)."\"";
echo ">";
break;

I'm missing something, just don't know what.

 12 
 on: June 10, 2014, 03:42:49 PM 
Started by PhanMan - Last post by PhanMan
Using the email module to send out emails when a new record is added.  However when there is an apostrophe (') or quotation marks (") in the text, the email that is sent out pulling the text from that field for the record displays in the mail as ’ and &quot;

-the value in fillemaker field shows the correct (') and (")
-the field echos/displays correctly on the php pages

Any suggestions?

 13 
 on: June 10, 2014, 03:16:37 PM 
Started by crmon1 - Last post by webko
Well somewhere it has to have a type declaration for the input, so it outputs something like

Code:
<input name="field" type="text" />

So, that needs to be changed to do password instead... Code?

 14 
 on: June 06, 2014, 07:00:51 AM 
Started by crmon1 - Last post by crmon1
Hello Everyone,
I have a project that requires a field to be served up live and the fmsLiveInputField works great. BUT I also need to mask the field as a password. Typically, you would just define the HTML input as "type=password". Can this be done using Live Filemaker Fields? How so? I've tried a few ways, all with no success.

Thanks in advance for your advice. Cheesy

Chris.

 15 
 on: May 29, 2014, 04:47:25 AM 
Started by Delfs - Last post by Delfs
Yes but I want to roll my own interface as it should be pretty simple. I just need to know the structure of the post (form) I know the url, but where do I stick the data etc.
I don't think this should be hard, I just need the documentation or even an example e I can reverse.

c

 16 
 on: May 26, 2014, 05:33:20 PM 
Started by Delfs - Last post by webko
The XML engine will accept either GET (URL) or POST (form) statements - but in your case, you may even be better off with: http://www.restfm.com/

 17 
 on: May 26, 2014, 05:03:31 PM 
Started by Matt Wales - Last post by webko
Oh yeah, I'm still here... but it's pretty empty these days...


 18 
 on: May 26, 2014, 10:23:38 AM 
Started by FMWebschool - Last post by Matt Wales
Hey All,

I hope all is well with everyone here at FMWebschool.

Is FMWebschool and FMstudio still alive?

Starting a new project and I wad really looking forward to using FMstudio Pro

Has something come out that renders FMStudio Pro obsolete?

Hope to get a reply.

MW

 Cool

 19 
 on: May 25, 2014, 10:49:21 AM 
Started by Delfs - Last post by Delfs
Thanks for the reply Tim,

I'm looking for the FM doc that out likes the structure etc.

This doc https://fmhelp.filemaker.com/docs/13/en/fms13_cwp_xml.pdf seems to be the mail doc but unless i'm bond says nothing on ho two pass data aside from the URL query string ...?


C

 20 
 on: May 25, 2014, 08:08:48 AM 
Started by MBUST - Last post by MBUST
Hello, and thank you.  I did not move to a new server; instead, the server was upgraded, so the API files (and all other webpages) were the same as the functional pages the day before.  Once I returned the site to the previous version of PHP, then the problem disappeared.  Since at this point I'm not going to return, for now, to the newest version of PHP, I won't set the error trapping to the suggested level. All is working well now, and I have a few other issues to deal with that are more urgent, but I'll keep it in mind.  Thanks again, for responding.

Max

Pages: 1 [2] 3 4 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!